fix stdexcept

https://sourceforge.net/p/jsoncpp/bugs/68/
This commit is contained in:
Christopher Dunn
2014-05-13 09:49:25 +00:00
parent 5d32295a6e
commit 6764059395
5 changed files with 17 additions and 17 deletions

View File

@@ -13,6 +13,7 @@
#endif // if !defined(JSON_IS_AMALGAMATION)
#if JSON_USE_EXCEPTION
# include <stdexcept>
#define JSON_ASSERT( condition ) assert( condition ); // @todo <= change this into an exception throw
#define JSON_FAIL_MESSAGE( message ) throw std::runtime_error( message );
#else // JSON_USE_EXCEPTION