blob: 5176044a88cc34450b216ced2b85f538edecb69c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef LPC_FORMAT_H1119018900_INCLUDE_GUARD_
#define LPC_FORMAT_H1119018900_INCLUDE_GUARD_
#if defined( HAVE_BOOST ) && defined( DEBUG )
#include <boost/format.hpp>
typedef boost::format format;
#else
struct null_format {
explicit null_format( const char* ) { }
template <typename T>
null_format& operator % ( const T& ) { return *this; }
};
template <typename OutStream>
inline OutStream& operator << ( OutStream& out, const null_format& ) { return out; }
typedef null_format format;
#endif
#endif /* LPC_FORMAT_H1119018900_INCLUDE_GUARD_ */
|