diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/utils.h b/src/utils.h index cdb43037..a8784a66 100644 --- a/src/utils.h +++ b/src/utils.h @@ -62,6 +62,10 @@ #define TIMERS_ON 1 #endif +#if defined(VERIFY_ON) +//#define STRING_VERIFY_ON 1 +#endif + /*@}*/ /** @@ -72,7 +76,7 @@ namespace ledger { using namespace boost; -#if defined(VERIFY_ON) +#if defined(STRING_VERIFY_ON) class string; #else typedef std::string string; @@ -158,6 +162,8 @@ 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(STRING_VERIFY_ON) + /** * @brief Brief * @@ -186,7 +192,7 @@ private: friend class boost::serialization::access; template<class Archive> - void serialize(Archive & ar, const unsigned int /* version */) { + void serialize(Archive& ar, const unsigned int /* version */) { ar & boost::serialization::base_object<std::string>(*this); } #endif // HAVE_BOOST_SERIALIZATION @@ -236,6 +242,8 @@ inline bool operator!=(const char* __lhs, const string& __rhs) inline bool operator!=(const string& __lhs, const char* __rhs) { return __lhs.compare(__rhs) != 0; } +#endif // STRING_VERIFY_ON + } // namespace ledger #else // ! VERIFY_ON |