Not sure how to keep Type out of the template while still referencing it from the templated class. i.e. How would I do this: "DualLookup::Type"?

This commit is contained in:
David Vereb
2017-11-10 15:42:32 -05:00
parent 757f877a5b
commit 6e603b412f
2 changed files with 13 additions and 7 deletions

View File

@@ -65,13 +65,13 @@ TEST_CASE("all tests", "all") {
REQUIRE(container.get(1, container_result));
CHECK(container_result == 2);
container_result = 0;
REQUIRE(container.get(1, container_result, DualLookup<int>::Type::OPPOSITE));
REQUIRE(container.get(1, container_result, DualLookupBase::Type::OPPOSITE));
CHECK(container_result == 2);
container_result = 0;
REQUIRE(container.get(1, container_result, DualLookup<int>::Type::EQUIVALENT));
REQUIRE(container.get(1, container_result, DualLookupBase::Type::EQUIVALENT));
CHECK(container_result == 2);
container_result = 0;
REQUIRE(container.get(1, container_result, DualLookup<int>::Type::VALUE));
REQUIRE(container.get(1, container_result, DualLookupBase::Type::VALUE));
CHECK(container_result == 1);
container_result = 0;