boost::log::formatters::wrap_if — A convenience class that conditionally wraps the type into a formatter.
// In header: <boost/log/formatters/wrappers.hpp> template<typename CharT, typename T, typename PredT> struct wrap_if : public wrap_if_c< CharT, T, PredT::value > { };