log: call format::operator% directly

one of the arguments may have overloaded operator% which may cause weird
compile-time errors
This commit is contained in:
Danny Robson 2015-10-19 17:41:56 +11:00
parent d847071f76
commit fdb12e57f6

View File

@ -34,7 +34,7 @@ namespace util {
template <typename T, typename ...tail>
void
log (level_t l, boost::format &&format, const T &val, tail ..._tail) {
::util::detail::log (l, std::move (format % val), _tail...);
::util::detail::log (l, std::move (format.operator% (val)), _tail...);
}
}