Open rigtorp opened 4 years ago
What value does __cplusplus
have?
Compiled with /std:c++14 /Zc:__cplusplus
so __cplusplus
shoud be 201402L
:
(https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/)
2020-04-14T20:45:59.9476192Z D:\a\date\date\test\date_test\durations_output.pass.cpp(316,62): error C2248: 'date::detail::string_literal<char,5>::string_literal': cannot access private member declared in class 'date::detail::string_literal<char,5>' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9485090Z D:\a\date\date\include\date\date.h(4018): message : see declaration of 'date::detail::string_literal<char,5>::string_literal' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9507366Z D:\a\date\date\include\date\date.h(4015): message : see declaration of 'date::detail::string_literal<char,5>' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9516420Z D:\a\date\date\include\date\date.h(4231,28): message : while evaluating constexpr function 'date::detail::operator +' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9523840Z D:\a\date\date\include\date\date.h(4450,12): message : while evaluating constexpr function 'date::detail::msl' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9524393Z D:\a\date\date\test\date_test\durations_output.pass.cpp(316,28): message : while evaluating constexpr function 'date::detail::get_units' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9524890Z D:\a\date\date\test\date_test\durations_output.pass.cpp(316,1): error C2248: 'date::detail::string_literal<CharT,6>::string_literal': cannot access private member declared in class 'date::detail::string_literal<CharT,6>' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9525268Z with
2020-04-14T20:45:59.9525592Z [
2020-04-14T20:45:59.9525907Z CharT=char
2020-04-14T20:45:59.9526397Z ]
2020-04-14T20:45:59.9527282Z D:\a\date\date\include\date\date.h(4018): message : see declaration of 'date::detail::string_literal<CharT,6>::string_literal' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9528582Z with
2020-04-14T20:45:59.9528934Z [
2020-04-14T20:45:59.9529255Z CharT=char
2020-04-14T20:45:59.9544771Z ]
2020-04-14T20:45:59.9545199Z D:\a\date\date\include\date\date.h(4015): message : see declaration of 'date::detail::string_literal<CharT,6>' [D:\a\date\date\build\date_test_pass_durations_output_bin.vcxproj]
2020-04-14T20:45:59.9545557Z with
2020-04-14T20:45:59.9545860Z [
2020-04-14T20:45:59.9546164Z CharT=char
2020-04-14T20:45:59.9546484Z ]
Looks like it's broken for both 199711L
and 201402L
.
Compiled with
/std:c++14
so__cplusplus
shoud be199711L
: