diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-08-01 00:56:05 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-08-01 00:56:05 +0200 |
commit | 4228e82740f62b841799cfca04861fa217fb93a5 (patch) | |
tree | 30bd93b9c62e87d8b1416344d21ba84cfb66ae2a /asl/meta/funcs_tests.cpp | |
parent | 4698812fdc2d9eeea03f26307d6e7e626aaec12b (diff) |
More work on taxonomy
Diffstat (limited to 'asl/meta/funcs_tests.cpp')
-rw-r--r-- | asl/meta/funcs_tests.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/asl/meta/funcs_tests.cpp b/asl/meta/funcs_tests.cpp new file mode 100644 index 0000000..f2f40a2 --- /dev/null +++ b/asl/meta/funcs_tests.cpp @@ -0,0 +1,14 @@ +#include "asl/meta/funcs.hpp"
+
+using namespace asl;
+
+static_assert(!is_func<int>);
+static_assert(!is_func<int&>);
+static_assert(!is_func<const int>);
+static_assert(!is_func<void>);
+static_assert(is_func<void()>);
+static_assert(is_func<void() const>);
+static_assert(is_func<void() &&>);
+static_assert(!is_func<void(*)()>);
+
+int main() { return 0; }
|