From cb9ea47e7825b5073d4d645afb94f6326cb7cf4d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 6 Sep 2009 12:52:53 +0200 Subject: Start the libcutl repository --- cutl/meta/class-p.hxx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cutl/meta/class-p.hxx (limited to 'cutl/meta/class-p.hxx') diff --git a/cutl/meta/class-p.hxx b/cutl/meta/class-p.hxx new file mode 100644 index 0000000..79e8469 --- /dev/null +++ b/cutl/meta/class-p.hxx @@ -0,0 +1,27 @@ +// file : cutl/meta/class-p.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef CUTL_META_CLASS_HXX +#define CUTL_META_CLASS_HXX + +#include + +namespace cutl +{ + namespace meta + { + template + struct class_p + { + template static no test (...); + template static yes test (void* Y::*); + + static bool const r = sizeof ( + class_p::template test (0)) == sizeof (yes); + }; + } +} + +#endif // CUTL_META_CLASS_HXX -- cgit v1.1