diff --git a/include/tao/pq/internal/format_as.hpp b/include/tao/pq/internal/format_as.hpp index 892c49c..184e39a 100644 --- a/include/tao/pq/internal/format_as.hpp +++ b/include/tao/pq/internal/format_as.hpp @@ -6,6 +6,7 @@ #define TAO_PQ_INTERNAL_FORMAT_AS_HPP #include +#include #include template< typename T > @@ -18,4 +19,11 @@ struct std::formatter< T > : std::formatter< decltype( taopq_format_as( std::dec } }; +template< typename T > + requires requires { taopq_format_as( std::declval< T >() ); } +std::ostream& operator<<( std::ostream& os, const T& v ) +{ + return os << taopq_format_as( v ); +} + #endif