range-v3 icon indicating copy to clipboard operation
range-v3 copied to clipboard

Range-v3 fails to compile on the latest MSVC version with Visual Studio 2022

Open KKhanhH opened this issue 2 years ago • 0 comments

I'm getting an error building range-v3 using the latest version of MSVC with Visual Studio 2022. Running the build on the latest version of MSVC with Visual Studio 2019 works fine.

Looks like it might be related to this issue https://developercommunity.visualstudio.com/t/MSVC-compiler-bug---parameter-pack-expan/10419008?q=intellisense&sort=newest

Error Log:

cl.exe failed: error executing CppCompile command (from target ...) C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX64\x64\cl.exe ... (remaining 1 argument skipped)
...\range-v3\include\range/v3/utility/compressed_pair.hpp(56): error C3546: '...': there are no parameter packs available to expand
...\range-v3\include\range/v3/utility/compressed_pair.hpp(56): note: the template instantiation context (the oldest one first) is
...\range-v3\include\range/v3/utility/compressed_pair.hpp(92): note: see reference to class template instantiation 'ranges::compressed_tuple_detail::compressed_tuple_<meta::list<Args...>,std::integer_sequence<size_t,_Kx...>>' being compiled
...\range-v3\include\range/v3/utility/compressed_pair.hpp(65): error C3546: '...': there are no parameter packs available to expand

KKhanhH avatar Jan 04 '24 19:01 KKhanhH