From 0bf3db3fcf2f00f83b28d8d946df2865d047fcf1 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 17 Apr 2018 11:00:02 +0100 Subject: Add static_assert for the correct jsoncpp version --- libdevcore/JSON.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libdevcore/JSON.cpp') 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 { -- cgit