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:
parent
d847071f76
commit
fdb12e57f6
2
log.ipp
2
log.ipp
@ -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...);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user