diff options
author | kumagi <hiroki.kumazaki@gmail.com> | 2015-12-24 20:42:21 +0900 |
---|---|---|
committer | kumagi <hiroki.kumazaki@gmail.com> | 2015-12-24 20:42:21 +0900 |
commit | 47673eaddc4a24826f1e03b55197636da786bda9 (patch) | |
tree | ec6cee9b0809649a9a4d371e0a249f18413e82e8 /include/json.h | |
parent | 206ecc77601725f3b3a34f28c58b00b835177148 (diff) | |
download | crow-47673eaddc4a24826f1e03b55197636da786bda9.tar.gz crow-47673eaddc4a24826f1e03b55197636da786bda9.zip |
defeat some warnings
Diffstat (limited to 'include/json.h')
-rw-r--r-- | include/json.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/json.h b/include/json.h index 6f9fec9..307ac83 100644 --- a/include/json.h +++ b/include/json.h @@ -286,7 +286,9 @@ namespace crow case type::String: return boost::lexical_cast<int64_t>(start_, end_-start_); default: - throw std::runtime_error(strcat("expected number, got: ", get_type_str(t()))); + const std::string msg = "expected number, got: " + + std::string(get_type_str(t())); + throw std::runtime_error(msg); } #endif return boost::lexical_cast<int64_t>(start_, end_-start_); |