Closed nqf closed 1 year ago
6:19: note: candidate: ‘trantor::LogStream& trantor::operator<<(trantor::LogStream&, const string_view&)’ 36 | inline LogStream &operator<<(LogStream &ls, const drogon::string_view &v)
Try to move the trantor::LogStream& trantor::operator<<(trantor::LogStream&, const string_view&)
to the boost::string_view section.
Now it's okay
namespace drogon
{
#if __cplusplus >= 201703L || (defined _MSC_VER && _MSC_VER > 1900)
using std::string_view;
#else
using boost::string_view;
namespace trantor
{
inline LogStream &operator<<(LogStream &ls, const drogon::string_view &v)
{
ls.append(v.data(), v.length());
return ls;
}
} // namespace trantor
#endif
} // namespace drogon