meta: Detection idiom (part 1) from Walter Brown added

This commit is contained in:
Christos Houtouridis
2019-10-13 19:52:54 +03:00
parent 2963c008f8
commit e974b9d43d
5 changed files with 116 additions and 7 deletions
+2 -2
View File
@@ -160,9 +160,9 @@ namespace test_meta {
}
/*
* Test void
* Test void_t
*/
TEST(Tmeta_void, VoidType) {
TEST(Tmeta, VoidType) {
struct Foo {};
struct Bar {};
EXPECT_EQ(true, (std::is_same<void, void_t<int, long, Foo, Bar>>()));