feat(pipeline): add MetaStack
This commit is contained in:
@@ -69,3 +69,13 @@ TEST_CASE("Pipeline") {
|
||||
|
||||
REQUIRE(count == 5);
|
||||
}
|
||||
|
||||
TEST_CASE("MetaStack") {
|
||||
struct IntId;
|
||||
struct StringId;
|
||||
|
||||
auto s = makeMeta<IntId>(makeMeta<StringId>(std::string("test")), 10);
|
||||
|
||||
REQUIRE(s.get<StringId>() == "test");
|
||||
REQUIRE(s.get<IntId>() == 10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user