Closed spacelg closed 3 years ago
I think this failure only appears if C++ 20 is enabled. C++ Modules still don't work for Outcome, so I'm minded to flip the default for C++ 20 to disabled by default, opt-in enable. Sound good?
@ned14 Thanks for your message, sorry for the late reply. Flip the default for C++ 20 to disabled by default sounds good. So that we can successfully build the outcome in our default mode.
Thanks, Lin
Fixed! Thanks for the BR!
Hi All,
Outcome failed to build due to error C2230 C7568 C2955 C2057 on windows with MSVC, this issue can be reproduced on latest version ned14/outcome@9f57231, can you help look?
Repro steps:
Patch file: patch_file.zip
Build log: build.log
Error info: 27>F:\gitP\ned14\outcome\test\tests../../include/outcome.hpp(32,34): error C2230: could not find module 'outcome_v2_9f572317' [F:\gitP\ned14\outcome\build_amd64\outcome_hl--constexpr.vcxproj] 27>F:\gitP\ned14\outcome\test\tests\constexpr.cpp(49,33): error C7568: argument list missing after assumed function template 'result' [F:\gitP\ned14\outcome\build_amd64\outcome_hl--constexpr.vcxproj] 27>F:\gitP\ned14\outcome\test\tests\constexpr.cpp(49,59): error C2955: 'is_literal_type': use of class template requires template argument list [F:\gitP\ned14\outcome\build_amd64\outcome_hl--constexpr.vcxproj] 27>F:\gitP\ned14\outcome\test\tests\constexpr.cpp(49,59): error C2057: expected constant expression [F:\gitP\ned14\outcome\build_amd64\outcome_hl--constexpr.vcxproj] 27>F:\gitP\ned14\outcome\test\tests\constexpr.cpp(50,33): error C7568: argument list missing after assumed function template 'outcome' [F:\gitP\ned14\outcome\build_amd64\outcome_hl--constexpr.vcxproj]