Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build warning in 6.2.1 on Windows using MSVC compiler #1724

Closed
0x8000-0000 opened this issue Jun 11, 2020 · 2 comments
Closed

Build warning in 6.2.1 on Windows using MSVC compiler #1724

0x8000-0000 opened this issue Jun 11, 2020 · 2 comments

Comments

@0x8000-0000
Copy link
Contributor

Building in release mode, I'm getting this "level 2" warning:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\xutility(3606,22): error C2220: the following warning is treated as an error [C:\Users\fiucha\source\repos\tng.conan\lib\tng\log\logger_impl.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\include\xutility(3643): message : see reference to function template instantiation '_OutIt std::_Copy_unchecked<_InIt,_OutIt>(_InIt,_InIt,_OutIt)' being compiled [C:\Users\fiucha\source\repos\tng.conan\lib\tng\log\logger_impl.vcxproj]
          with
          [
              _OutIt=std::back_insert_iterator<fmt::v6::basic_memory_buffer<char,500,std::allocator<char>>>,
              _InIt=const wchar_t *
          ]
C:\Users\fiucha\.conan\data\fmt\6.2.1\_\_\package\3fb49604f9c2f729b85ba3115852006824e72cab\include\fmt/chrono.h(778): message : see reference to function template instantiation '_OutIt std::copy<const wchar_t*,OutputIt>(_InIt,_InIt,_OutIt)' being compiled [C:\Users\fiucha\source\repos\tng.conan\lib\tng\log\logger_impl.vcxproj]
          with
          [
              _OutIt=std::back_insert_iterator<fmt::v6::basic_memory_buffer<char,500,std::allocator<char>>>,
              OutputIt=std::back_insert_iterator<fmt::v6::basic_memory_buffer<char,500,std::allocator<char>>>,
              _InIt=const wchar_t *
          ]
C:\Users\fiucha\.conan\data\fmt\6.2.1\_\_\package\3fb49604f9c2f729b85ba3115852006824e72cab\include\fmt/chrono.h(1105): message : see reference to function template instantiation 'OutputIt fmt::v6::internal::format_duration_unit<Char,Period,std::back_insert_iterator<fmt::v6::basic_memory_buffer<char,500,std::allocator<char>>>>(OutputIt)' being compiled [C:\Users\fiucha\source\repos\tng.conan\lib\tng\log\logger_impl.vcxproj]
          with
          [
              OutputIt=std::back_insert_iterator<fmt::v6::basic_memory_buffer<char,500,std::allocator<char>>>,
              Char=char,
              Period=std::chrono::system_clock::period
          ]
C:\Users\fiucha\.conan\data\fmt\6.2.1\_\_\package\3fb49604f9c2f729b85ba3115852006824e72cab\include\fmt\core.h(899): message : see reference to function template instantiation 'std::back_insert_iterator<fmt::v6::internal::buffer<char>> fmt::v6::formatter<Arg,char,void>::format<Context>(const std::chrono::duration<std::chrono::system_clock::rep,std::chrono::system_clock::period> &,FormatContext &)' being compiled [C:\Users\fiucha\source\repos\tng.conan\lib\tng\log\logger_impl.vcxproj]
          with
          [
              Arg=std::chrono::duration<std::chrono::system_clock::rep,std::chrono::system_clock::period>,
              Context=fmt::v6::format_context,
              FormatContext=fmt::v6::format_context
          ]
C:\Users\fiucha\.conan\data\fmt\6.2.1\_\_\package\3fb49604f9c2f729b85ba3115852006824e72cab\include\fmt\core.h(899): message : see reference to function template instantiation 'std::back_insert_iterator<fmt::v6::internal::buffer<char>> fmt::v6::formatter<Arg,char,void>::format<Context>(const std::chrono::duration<std::chrono::system_clock::rep,std::chrono::system_clock::period> &,FormatContext &)' being compiled [C:\Users\fiucha\source\repos\tng.conan\lib\tng\log\logger_impl.vcxproj]
          with
          [
              Arg=std::chrono::duration<std::chrono::system_clock::rep,std::chrono::system_clock::period>,
              Context=fmt::v6::format_context,
              FormatContext=fmt::v6::format_context
          ]
C:\Users\fiucha\.conan\data\fmt\6.2.1\_\_\package\3fb49604f9c2f729b85ba3115852006824e72cab\include\fmt\core.h(886): message : see reference to function template instantiation 'void fmt::v6::internal::value<Context>::format_custom_arg<T,fmt::v6::formatter<T,char,void>>(const void *,fmt::v6::basic_format_parse_context<char,fmt::v6::internal::error_handler> &,Context &)' being compiled [C:\Users\fiucha\source\repos\tng.conan\lib\tng\log\logger_impl.vcxproj]
          with
          [
              Context=fmt::v6::format_context,
              T=std::chrono::duration<std::chrono::system_clock::rep,std::chrono::system_clock::period>
          ]

I'm not building with any special Unicode options, but at some point chars and wchar_t's get mixed.

@dejoma
Copy link

dejoma commented Jun 12, 2020

same issue here!

@vitaut
Copy link
Contributor

vitaut commented Jun 23, 2020

Same as #1649 which is already fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants