You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to print MyVector3f by by implementing operator<<, it works well with spdlog of version v1.9.2, but will get a compile error when upgrade to version v1.10.0. It seems that the class is_streamable in spdlog/fmt/bundled/ostream.h was changed in v1.10.0.
complie error:
enableif.cpp:25:11: error: no member named 'x' in 'fmt::basic_string_view<char>'
v.x() = this->x;
~ ^
/spdlog/include/spdlog/fmt/bundled/core.h:1373:41: note: in instantiation of function template specialization 'MyVector3f::operator basic_string_view<fmt::basic_string_view<char>>' requested here
return basic_string_view<char_type>(val);
^
/spdlog/include/spdlog/logger.h:90:9: note: in instantiation of function template specialization 'spdlog::logger::log_<MyVector3f &>' requested here
log_(loc, lvl, fmt, std::forward<Args>(args)...);
^
/spdlog/include/spdlog/logger.h:96:9: note: in instantiation of function template specialization 'spdlog::logger::log<MyVector3f &>' requested here
log(source_loc{}, lvl, fmt, std::forward<Args>(args)...);
^
/spdlog/include/spdlog/logger.h:158:9: note: in instantiation of function template specialization 'spdlog::logger::log<MyVector3f &>' requested here
log(level::info, fmt, std::forward<Args>(args)...);
^
/spdlog/include/spdlog/spdlog.h:157:27: note: in instantiation of function template specialization 'spdlog::logger::info<MyVector3f &>' requested here
default_logger_raw()->info(fmt, std::forward<Args>(args)...);
^
enableif.cpp:41:13: note: in instantiation of function template specialization 'spdlog::info<MyVector3f &>' requested here
spdlog::info("v3 {}", v3);
^
enableif.cpp:26:11: error: no member named 'y' in 'fmt::basic_string_view<char>'
v.y() = this->y;
~ ^
enableif.cpp:27:11: error: no member named 'z' in 'fmt::basic_string_view<char>'
v.z() = this->z;
~ ^
3 errors generated.
I want to print MyVector3f by by implementing operator<<, it works well with spdlog of version v1.9.2, but will get a compile error when upgrade to version v1.10.0. It seems that the class
is_streamable
inspdlog/fmt/bundled/ostream.h
was changed in v1.10.0.complie error:
code is list below:
The text was updated successfully, but these errors were encountered: