Advertisement
AntonyZhilin

Untitled

Dec 14th, 2023
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.39 KB | None | 0 0
  1. 141.8 In file included from /app/third_party/userver/universal/src/logging/log_helper_impl.cpp:6:
  2. 141.8 /usr/include/fmt/compile.h:151:12: error: call to 'write' is ambiguous
  3. 141.8 151 | return write<Char>(out, arg);
  4. 141.8 | ^~~~~~~~~~~
  5. 141.8 /usr/include/fmt/compile.h:215:15: note: in instantiation of function template specialization 'fmt::detail::field<char, userver::logging::(anonymous namespace)::TimeString, 0>::format<char *, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>' requested here
  6. 141.8 215 | out = lhs.format(out, args...);
  7. 141.8 | ^
  8. 141.8 /usr/include/fmt/compile.h:216:16: note: in instantiation of function template specialization 'fmt::detail::concat<fmt::detail::field<char, userver::logging::(anonymous namespace)::TimeString, 0>, fmt::detail::concat<fmt::detail::code_unit<char>, fmt::detail::concat<fmt::detail::spec_field<char, long, 1>, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::field<char, std::basic_string_view<char>, 2>>>>>::format<char *, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>' requested here
  9. 141.8 216 | return rhs.format(out, args...);
  10. 141.8 | ^
  11. 141.8 /usr/include/fmt/compile.h:444:13: note: in instantiation of function template specialization 'fmt::detail::concat<fmt::detail::text<char>, fmt::detail::concat<fmt::detail::field<char, userver::logging::(anonymous namespace)::TimeString, 0>, fmt::detail::concat<fmt::detail::code_unit<char>, fmt::detail::concat<fmt::detail::spec_field<char, long, 1>, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::field<char, std::basic_string_view<char>, 2>>>>>>::format<char *, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>' requested here
  12. 141.8 444 | return cf.format(out, args...);
  13. 141.8 | ^
  14. 141.8 /usr/include/fmt/compile.h:484:17: note: in instantiation of function template specialization 'fmt::format_to<char *, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::concat<fmt::detail::field<char, userver::logging::(anonymous namespace)::TimeString, 0>, fmt::detail::concat<fmt::detail::code_unit<char>, fmt::detail::concat<fmt::detail::spec_field<char, long, 1>, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::field<char, std::basic_string_view<char>, 2>>>>>>, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>, 0>' requested here
  15. 141.8 484 | return fmt::format_to(out, compiled, std::forward<Args>(args)...);
  16. 141.8 | ^
  17. 141.8 /app/third_party/userver/universal/src/logging/log_helper_impl.cpp:110:12: note: in instantiation of function template specialization 'fmt::format_to<char *, FMT_COMPILE_STRING, userver::logging::(anonymous namespace)::TimeString, long, const std::basic_string_view<char> &, 0>' requested here
  18. 141.8 110 | fmt::format_to(
  19. 141.8 | ^
  20. 141.8 /usr/include/fmt/format.h:3746:20: note: candidate function [with Char = char, OutputIt = char *, T = userver::logging::(anonymous namespace)::TimeString, Context = fmt::basic_format_context<char *, char>]
  21. 141.8 3746 | FMT_CONSTEXPR auto write(OutputIt out, const T& value) -> enable_if_t<
  22. 141.8 | ^
  23. 141.8 /usr/include/fmt/format.h:3757:20: note: candidate function [with Char = char, OutputIt = char *, T = userver::logging::(anonymous namespace)::TimeString, Context = fmt::basic_format_context<char *, char>]
  24. 141.8 3757 | FMT_CONSTEXPR auto write(OutputIt out, const T& value)
  25. 141.8 | ^
  26. 141.8 In file included from /app/third_party/userver/universal/src/logging/log_helper_impl.cpp:1:
  27. 141.8 In file included from /app/third_party/userver/universal/src/logging/log_helper_impl.hpp:7:
  28. 141.8 In file included from /usr/include/fmt/format.h:49:
  29. 141.8 /usr/include/fmt/core.h:1576:63: error: implicit instantiation of undefined template 'fmt::detail::type_is_unformattable_for<const userver::logging::(anonymous namespace)::TimeString, char>'
  30. 141.8 1576 | type_is_unformattable_for<T, typename Context::char_type> _;
  31. 141.8 | ^
  32. 141.8 /usr/include/fmt/core.h:1808:23: note: in instantiation of function template specialization 'fmt::detail::make_arg<true, fmt::basic_format_context<char *, char>, const userver::logging::(anonymous namespace)::TimeString, 0>' requested here
  33. 141.8 1808 | data_{detail::make_arg<is_packed, Context>(args)...} {
  34. 141.8 | ^
  35. 141.8 /usr/include/fmt/core.h:1826:10: note: in instantiation of function template specialization 'fmt::format_arg_store<fmt::basic_format_context<char *, char>, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>::format_arg_store<const userver::logging::(anonymous namespace)::TimeString, const long, const std::basic_string_view<char>>' requested here
  36. 141.8 1826 | return {args...};
  37. 141.8 | ^
  38. 141.8 /usr/include/fmt/compile.h:199:14: note: in instantiation of function template specialization 'fmt::make_format_args<fmt::basic_format_context<char *, char>, const userver::logging::(anonymous namespace)::TimeString, const long, const std::basic_string_view<char>>' requested here
  39. 141.8 199 | fmt::make_format_args<basic_format_context<OutputIt, Char>>(args...);
  40. 141.8 | ^
  41. 141.8 /usr/include/fmt/compile.h:215:15: note: in instantiation of function template specialization 'fmt::detail::spec_field<char, long, 1>::format<char *, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>' requested here
  42. 141.8 215 | out = lhs.format(out, args...);
  43. 141.8 | ^
  44. 141.8 /usr/include/fmt/compile.h:216:16: note: in instantiation of function template specialization 'fmt::detail::concat<fmt::detail::spec_field<char, long, 1>, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::field<char, std::basic_string_view<char>, 2>>>::format<char *, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>' requested here
  45. 141.8 216 | return rhs.format(out, args...);
  46. 141.8 | ^
  47. 141.8 /usr/include/fmt/compile.h:216:16: note: in instantiation of function template specialization 'fmt::detail::concat<fmt::detail::code_unit<char>, fmt::detail::concat<fmt::detail::spec_field<char, long, 1>, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::field<char, std::basic_string_view<char>, 2>>>>::format<char *, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>' requested here
  48. 141.8 /usr/include/fmt/compile.h:216:16: note: in instantiation of function template specialization 'fmt::detail::concat<fmt::detail::field<char, userver::logging::(anonymous namespace)::TimeString, 0>, fmt::detail::concat<fmt::detail::code_unit<char>, fmt::detail::concat<fmt::detail::spec_field<char, long, 1>, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::field<char, std::basic_string_view<char>, 2>>>>>::format<char *, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>' requested here
  49. 141.8 /usr/include/fmt/compile.h:444:13: note: in instantiation of function template specialization 'fmt::detail::concat<fmt::detail::text<char>, fmt::detail::concat<fmt::detail::field<char, userver::logging::(anonymous namespace)::TimeString, 0>, fmt::detail::concat<fmt::detail::code_unit<char>, fmt::detail::concat<fmt::detail::spec_field<char, long, 1>, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::field<char, std::basic_string_view<char>, 2>>>>>>::format<char *, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>>' requested here
  50. 141.8 444 | return cf.format(out, args...);
  51. 141.8 | ^
  52. 141.8 /usr/include/fmt/compile.h:484:17: note: in instantiation of function template specialization 'fmt::format_to<char *, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::concat<fmt::detail::field<char, userver::logging::(anonymous namespace)::TimeString, 0>, fmt::detail::concat<fmt::detail::code_unit<char>, fmt::detail::concat<fmt::detail::spec_field<char, long, 1>, fmt::detail::concat<fmt::detail::text<char>, fmt::detail::field<char, std::basic_string_view<char>, 2>>>>>>, userver::logging::(anonymous namespace)::TimeString, long, std::basic_string_view<char>, 0>' requested here
  53. 141.8 484 | return fmt::format_to(out, compiled, std::forward<Args>(args)...);
  54. 141.8 | ^
  55. 141.8 /app/third_party/userver/universal/src/logging/log_helper_impl.cpp:110:12: note: in instantiation of function template specialization 'fmt::format_to<char *, FMT_COMPILE_STRING, userver::logging::(anonymous namespace)::TimeString, long, const std::basic_string_view<char> &, 0>' requested here
  56. 141.8 110 | fmt::format_to(
  57. 141.8 | ^
  58. 141.8 /usr/include/fmt/core.h:1554:45: note: template is declared here
  59. 141.8 1554 | template <typename T, typename Char> struct type_is_unformattable_for;
  60. 141.8 | ^
  61. 141.8 /usr/include/fmt/core.h:1580:7: error: static assertion failed due to requirement 'formattable': Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
  62. 141.8 1580 | formattable,
  63. 141.8 | ^~~~~~~~~~~
  64. 141.8 3 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement