log::info (and others) dont work with `fmt::join`
matcool opened this issue · 0 comments
matcool commented
fmt\core.h:2778:9: error: static assertion failed due to requirement 'detail::count() == 0': passing views as lvalues is disallowed
2778 | detail::count<
| ^~~~~~~~~~~~~~
2779 | (std::is_base_of<detail::view, remove_reference_t<Args>>::value &&
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2780 | std::is_reference<Args>::value)...>() == 0,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: in instantiation of function template specialization 'fmt::basic_format_string<char, fmt::join_view<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<float>>>, std::_Vector_iterator<std::_Vector_val<std::_Simple_types<float>>>> &&>::basic_format_string<char[11], 0>' requested here
71 | log::info("numbers {}", fmt::join(nums, ", "));