Closed dangdkhanh closed 4 months ago
The following code can reproduce the issue:
auto test = ranges::views::generate_n(rand, 5) | ranges::to<std::vector>();
and compiling in MSVC in the release mode (in debug, it is not an issue).
A workaround is to wrap conversion.hpp
header with pragma disabling warning:
#pragma warning(push)
#pragma warning(disable : 4702)
#include <range/v3/range/conversion.hpp>
#pragma warning(pop)
Hi, i am using vs22 and range-v3 latest version. I recently noticed this rather annoying warning. i'm not sure where it came from though tried omitting range-v3 headers in turn but it still shows up. everything is working fine but i still hope to be able to fix it.
Thanks you.