boost::log::formatters::wrap_if_not_formatter — A convenience class that wraps the type into a formatter if it is not a formatter yet.
// In header: <boost/log/formatters/wrappers.hpp> template<typename CharT, typename T> struct wrap_if_not_formatter : public wrap_if< CharT, T, mpl::not_< is_formatter< T > > > { };