diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-04 11:41:58 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:38 -0400 |
commit | 96684b72ca367bfd4dbe2e45a9a66c56204eb533 (patch) | |
tree | 3e218d1048d5941baa1d1064bc2539ef2df55a45 /src/utils.h | |
parent | 93096b77f3c03b826c8857e4817ccd1bca52f9ee (diff) | |
download | ledger-96684b72ca367bfd4dbe2e45a9a66c56204eb533.tar.gz ledger-96684b72ca367bfd4dbe2e45a9a66c56204eb533.tar.bz2 ledger-96684b72ca367bfd4dbe2e45a9a66c56204eb533.zip |
Added code for converting ledger::string and boost::date_time to their
respective Python counterparts.
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils.h b/src/utils.h index bde23b2b..ddc6de85 100644 --- a/src/utils.h +++ b/src/utils.h @@ -36,7 +36,7 @@ namespace ledger { using namespace boost; -#if defined(VERIFY_ON) && ! defined(USE_BOOST_PYTHON) +#if defined(VERIFY_ON) class string; #else typedef std::string string; @@ -115,8 +115,10 @@ void trace_dtor_func(void * ptr, const char * cls_name, std::size_t cls_size); void report_memory(std::ostream& out, bool report_all = false); -#if ! defined(USE_BOOST_PYTHON) - +/** + * This string type is a wrapper around std::string that allows us to + * trace constructor and destructor calls. + */ class string : public std::string { public: @@ -177,8 +179,6 @@ inline bool operator!=(const char* __lhs, const string& __rhs) inline bool operator!=(const string& __lhs, const char* __rhs) { return __lhs.compare(__rhs) != 0; } -#endif - } // namespace ledger #else // ! VERIFY_ON |