Commit 7a83dcd2 authored by Victor Zverovich's avatar Victor Zverovich

Mind the lifetime.

parent 7e40ca6a
......@@ -127,7 +127,8 @@ TEST(ArgTest, ArgInfo) {
}
#define EXPECT_ARG_(Char, type_code, MakeArgType, ExpectedType, value) { \
Arg arg = MakeArg<Char>(static_cast<MakeArgType>(value)); \
MakeArgType input = static_cast<MakeArgType>(value); \
Arg arg = MakeArg<Char>(input); \
EXPECT_EQ(Arg::type_code, arg.type); \
ExpectedType expected_value = static_cast<ExpectedType>(value); \
EXPECT_EQ(expected_value, ArgInfo<Arg::type_code>::get(arg)); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment