mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-06 13:41:35 +01:00
Fixed readertest compilation error
This commit is contained in:
parent
cc04219e36
commit
f1ae39f9e2
@ -13,7 +13,7 @@ RAPIDJSON_DIAG_OFF(effc++)
|
||||
template<bool expect>
|
||||
struct ParseBoolHandler : BaseReaderHandler<> {
|
||||
ParseBoolHandler() : step_(0) {}
|
||||
bool Default() { FAIL(); }
|
||||
bool Default() { ADD_FAILURE(); return false; }
|
||||
// gcc 4.8.x generates warning in EXPECT_EQ(bool, bool) on this gtest version.
|
||||
// Workaround with EXPECT_TRUE().
|
||||
bool Bool(bool b) { /*EXPECT_EQ(expect, b); */EXPECT_TRUE(expect == b); ++step_; return true; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user