summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-12 14:29:08 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-12 14:29:08 -0500
commitbfd9ecf2af079894f95bac365818c9548f561039 (patch)
treedce7e13ec7ad8f18bc628efe511d17e94bc3e16d /src/utils.h
parenta034435c4287aba7fd32ed63a745e560350c924a (diff)
parent49a356f2d260ed0cc071ca1aa82027bd325b0b8b (diff)
downloadfork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.tar.gz
fork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.tar.bz2
fork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.zip
Merge branch 'next'
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 8ddc3c44..f0a165c2 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -181,6 +181,8 @@ void report_memory(std::ostream& out, bool report_all = false);
namespace ledger {
+#if defined(VERIFY_ON) || defined(HAVE_BOOST_PYTHON)
+
class string : public std::string
{
public:
@@ -253,6 +255,12 @@ inline bool operator!=(const char* __lhs, const string& __rhs)
inline bool operator!=(const string& __lhs, const char* __rhs)
{ return __lhs.compare(__rhs) != 0; }
+#else // defined(VERIFY_ON) || defined(HAVE_BOOST_PYTHON)
+
+typedef std::string string;
+
+#endif // defined(VERIFY_ON) || defined(HAVE_BOOST_PYTHON)
+
extern string empty_string;
strings_list split_arguments(const char * line);