Skip to content

Commit 2b78d50

Browse files
committed
Fix build with C++17 or lower
1 parent 77045f1 commit 2b78d50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/object_with_zone.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ TEST(object_with_zone, ext_ref_empty)
11021102
msgpack::type::ext_ref v;
11031103
msgpack::zone z;
11041104
msgpack::object obj(v, z);
1105-
EXPECT_TRUE(obj.as<msgpack::type::ext>() == v);
1105+
EXPECT_TRUE(obj.as<msgpack::type::ext>() == msgpack::type::ext(v));
11061106
EXPECT_TRUE(obj.as<msgpack::type::ext_ref>() == v);
11071107
}
11081108

@@ -1112,6 +1112,6 @@ TEST(object_with_zone, ext_ref_from_buf)
11121112
msgpack::type::ext_ref v(buf, sizeof(buf));
11131113
msgpack::zone z;
11141114
msgpack::object obj(v, z);
1115-
EXPECT_TRUE(obj.as<msgpack::type::ext>() == v);
1115+
EXPECT_TRUE(obj.as<msgpack::type::ext>() == msgpack::type::ext(v));
11161116
EXPECT_TRUE(obj.as<msgpack::type::ext_ref>() == v);
11171117
}

0 commit comments

Comments
 (0)