You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the following in VS 17.10.0 Preview 1.0, I have not tested to see if this is a regression or new.
The following code
import std;
//#include <ranges>
//#include <vector>
void main( )
{
std::vector<double> points { 1.6, 2.6, 99.9 };
auto fn = []( double a, double b ) -> double
{
return a + b ;
};
auto x = points | std::ranges::views::pairwise_transform( fn );
auto y = std::ranges::to<std::vector>( x );
}
compiles fine and does what I expect when I use the #includes however when I switch to the import std; i get
C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33521\include\ranges(8957,9): error C1116: unrecoverable error importing module 'std'. Specialization of 'std::invoke_result_t' with arguments '_Fn, _Ty...'
Hopefully this is already fixed by the upcoming stuff in #1694 but I'm not really able to tell.
The text was updated successfully, but these errors were encountered:
I ran into the following in VS 17.10.0 Preview 1.0, I have not tested to see if this is a regression or new.
The following code
compiles fine and does what I expect when I use the
#includes
however when I switch to theimport std;
i getHopefully this is already fixed by the upcoming stuff in #1694 but I'm not really able to tell.
The text was updated successfully, but these errors were encountered: