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