mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-14 06:55:50 +02:00
Fixed #382.
Fixed warnings on gcc 4.1.2. Added gcc version checking for adding -std=c++03 flag.
This commit is contained in:
@@ -687,7 +687,7 @@ TEST(object_with_zone, construct_enum)
|
||||
msgpack::zone z;
|
||||
msgpack::object obj(elem, z);
|
||||
EXPECT_EQ(msgpack::type::POSITIVE_INTEGER, obj.type);
|
||||
EXPECT_EQ(elem, obj.via.u64);
|
||||
EXPECT_EQ(static_cast<uint64_t>(elem), obj.via.u64);
|
||||
}
|
||||
|
||||
#if !defined(MSGPACK_USE_CPP03)
|
||||
@@ -707,7 +707,7 @@ TEST(object_with_zone, construct_enum_outer)
|
||||
msgpack::zone z;
|
||||
msgpack::object obj(outer_enum::elem, z);
|
||||
EXPECT_EQ(msgpack::type::POSITIVE_INTEGER, obj.type);
|
||||
EXPECT_EQ(elem, obj.via.u64);
|
||||
EXPECT_EQ(static_cast<uint64_t>(elem), obj.via.u64);
|
||||
}
|
||||
|
||||
// User defined inheriting classes
|
||||
|
Reference in New Issue
Block a user