From 8e761289a2446367267c6c0d9a26e734f0f78306 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 16 Dec 2020 20:29:05 +0300 Subject: Get rid of legacy build systems and rename cutl/ to libcutl/ --- libcutl/meta/class-p.hxx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libcutl/meta/class-p.hxx (limited to 'libcutl/meta/class-p.hxx') diff --git a/libcutl/meta/class-p.hxx b/libcutl/meta/class-p.hxx new file mode 100644 index 0000000..fc7a111 --- /dev/null +++ b/libcutl/meta/class-p.hxx @@ -0,0 +1,26 @@ +// file : libcutl/meta/class-p.hxx +// license : MIT; see accompanying LICENSE file + +#ifndef LIBCUTL_META_CLASS_HXX +#define LIBCUTL_META_CLASS_HXX + +#include + +namespace cutl +{ + namespace meta + { + // g++ cannot have these inside class_p. + // + template no class_p_test (...); + template yes class_p_test (void (Y::*) ()); + + template + struct class_p + { + static bool const r = sizeof (class_p_test (0)) == sizeof (yes); + }; + } +} + +#endif // LIBCUTL_META_CLASS_HXX -- cgit v1.1