Visual Studio Code – Is this behavior of std::expected with move-only types a MSVC bug or undefined behavior?
I've encountered a curious issue with my C++ code when compiling with Microsoft Visual Studio's MSVC compiler, and I'm trying to determine whether it's a compiler bug or undefined behavior according to the C++ standard. The minimal reproducible example is…