|
@@ -133,7 +133,11 @@ public:
|
|
|
///
|
|
|
/// \param arg The argument to place into the placeholder.
|
|
|
template<class Arg> Formatter arg(const Arg& value) {
|
|
|
- return (arg(boost::lexical_cast<std::string>(value)));
|
|
|
+ if (active_) {
|
|
|
+ return (arg(boost::lexical_cast<std::string>(value)));
|
|
|
+ } else {
|
|
|
+ return (Formatter<Logger>());
|
|
|
+ }
|
|
|
}
|
|
|
/// \brief String version of arg.
|
|
|
Formatter arg(const std::string& arg) {
|