Add is_templated() helper

This commit is contained in:
Jonathan Müller 2017-03-27 21:47:57 +02:00
commit 67f247533c
6 changed files with 26 additions and 4 deletions

View file

@ -62,6 +62,7 @@ struct b<0, T> {};
auto count = test_visit<cpp_class_template>(*file, [&](const cpp_class_template& templ) {
auto& c = templ.class_();
REQUIRE(!c.is_final());
REQUIRE(is_templated(c));
if (templ.name() == "a")
{