aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/JSON.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-04-17 18:00:02 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-17 18:03:19 +0800
commit0bf3db3fcf2f00f83b28d8d946df2865d047fcf1 (patch)
treefed13dba9d906197b8752dd15e281d101a0cc70f /libdevcore/JSON.cpp
parent0304582cbf61798d0a088c46681ffb4f0ab5793c (diff)
downloaddexon-solidity-0bf3db3fcf2f00f83b28d8d946df2865d047fcf1.tar.gz
dexon-solidity-0bf3db3fcf2f00f83b28d8d946df2865d047fcf1.tar.zst
dexon-solidity-0bf3db3fcf2f00f83b28d8d946df2865d047fcf1.zip
Add static_assert for the correct jsoncpp version
Diffstat (limited to 'libdevcore/JSON.cpp')
-rw-r--r--libdevcore/JSON.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdevcore/JSON.cpp b/libdevcore/JSON.cpp
index 079d4d51..d99b3bc6 100644
--- a/libdevcore/JSON.cpp
+++ b/libdevcore/JSON.cpp
@@ -27,6 +27,11 @@
using namespace std;
+static_assert(
+ (JSONCPP_VERSION_MAJOR == 1) && (JSONCPP_VERSION_MINOR == 7) && (JSONCPP_VERSION_PATCH == 7),
+ "Unexpected jsoncpp version: " JSONCPP_VERSION_STRING ". Expecting 1.7.7."
+);
+
namespace dev
{