Skip to content

Commit

Permalink
fix compile error with c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Sep 18, 2019
1 parent d26d3e3 commit 40bcd87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

cmake_minimum_required(VERSION 3.0.0)

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

Expand Down
6 changes: 3 additions & 3 deletions include/jsonrpcpp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
_( )/ ___) / \ ( ( \( _ \( _ \ / __)( ) ( )
/ \) \\___ \( O )/ / ) / ) __/( (__(_ _)(_ _)
\____/(____/ \__/ \_)__)(__\_)(__) \___)(_) (_)
version 1.2.0
version 1.2.1
https://github.com/badaix/jsonrpcpp
This file is part of jsonrpc++
Copyright (C) 2017-2018 Johannes Pohl
Copyright (C) 2017-2019 Johannes Pohl
This software may be modified and distributed under the terms
of the MIT license. See the LICENSE file for details.
Expand Down Expand Up @@ -869,7 +869,7 @@ inline void Error::parse_json(const Json& json)
code_ = json["code"];
if (json.count("message") == 0)
throw RpcException("message is missing");
message_ = json["message"];
message_ = json["message"].get<std::string>();
if (json.count("data") != 0u)
data_ = json["data"];
else
Expand Down

0 comments on commit 40bcd87

Please sign in to comment.