Skip to content

Commit 40bcd87

Browse files
committed
fix compile error with c++17
1 parent d26d3e3 commit 40bcd87

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
cmake_minimum_required(VERSION 3.0.0)
1414

15-
project(jsonrpcpp VERSION 1.2.0 LANGUAGES CXX)
15+
project(jsonrpcpp VERSION 1.2.1 LANGUAGES CXX)
1616
set(PROJECT_DESCRIPTION "C++ JSON-RPC 2.0 library")
1717
set(PROJECT_URL "https://github.com/badaix/jsonrpcpp")
1818

include/jsonrpcpp.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
_( )/ ___) / \ ( ( \( _ \( _ \ / __)( ) ( )
44
/ \) \\___ \( O )/ / ) / ) __/( (__(_ _)(_ _)
55
\____/(____/ \__/ \_)__)(__\_)(__) \___)(_) (_)
6-
version 1.2.0
6+
version 1.2.1
77
https://github.com/badaix/jsonrpcpp
88
99
This file is part of jsonrpc++
10-
Copyright (C) 2017-2018 Johannes Pohl
10+
Copyright (C) 2017-2019 Johannes Pohl
1111
1212
This software may be modified and distributed under the terms
1313
of the MIT license. See the LICENSE file for details.
@@ -869,7 +869,7 @@ inline void Error::parse_json(const Json& json)
869869
code_ = json["code"];
870870
if (json.count("message") == 0)
871871
throw RpcException("message is missing");
872-
message_ = json["message"];
872+
message_ = json["message"].get<std::string>();
873873
if (json.count("data") != 0u)
874874
data_ = json["data"];
875875
else

0 commit comments

Comments
 (0)