diff options
Diffstat (limited to 'util/log.h')
-rw-r--r-- | util/log.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/log.h b/util/log.h index 96fba916ec4..5f8d7589f87 100644 --- a/util/log.h +++ b/util/log.h @@ -20,12 +20,14 @@ namespace mongo { + // Utility interface for stringifying object only when val() called. class LazyString { public: virtual ~LazyString() {} virtual string val() const = 0; }; - + + // Utility class for stringifying object only when val() called. template< class T > class LazyStringImpl : public LazyString { public: |