gnuradio / pmt

pmt
GNU Lesser General Public License v3.0
11 stars 11 forks source link

Disambiguate format_to #97

Closed vimpostor closed 1 year ago

vimpostor commented 1 year ago

Otherwise with C++20 we may get an error for an ambiguous definition, as std::format_to may shadow fmt::format_to, for example with gcc the error may look like this:

error: call of overloaded ‘format_to(fmt::v8::basic_format_context<fmt::v8::appender, char>::iterator, const char [9], float, float)’ is ambiguous
(...)
candidate: ‘OutputIt fmt::v8::format_to(OutputIt, format_string<T ...>, T&& ...)
(...)
candidate: ‘_Out std::format_to(_Out, format_string<_Args ...>, _Args&& ...)