From 5d0b75d129e34777dcbfae9efa50dd4b6a368824 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 27 Feb 2020 08:00:18 +1100 Subject: [PATCH] introspection: test variadic template type_name --- test/introspection.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/introspection.cpp b/test/introspection.cpp index 492e261b..29a4b8ae 100644 --- a/test/introspection.cpp +++ b/test/introspection.cpp @@ -23,8 +23,8 @@ namespace bar { /////////////////////////////////////////////////////////////////////////////// -template -struct templated_with_type { ValueT inner; }; +template +struct templated_with_type { }; template @@ -100,6 +100,12 @@ int main () "templated_with_type" ); + tap.expect_eq ( + cruft::type_name> (), + std::string_view {"templated_with_type"}, + "templated_with_type" + ); + tap.expect_eq ( cruft::type_name>> (), std::string_view {"templated_with_type >"},