diff options
Diffstat (limited to 'odb/meta/polymorphic-p.hxx')
-rw-r--r-- | odb/meta/polymorphic-p.hxx | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/odb/meta/polymorphic-p.hxx b/odb/meta/polymorphic-p.hxx deleted file mode 100644 index 571ef52..0000000 --- a/odb/meta/polymorphic-p.hxx +++ /dev/null @@ -1,51 +0,0 @@ -// file : odb/meta/polymorphic-p.hxx -// author : Boris Kolpackov <boris@codesynthesis.com> -// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC -// license : GNU GPL v2; see accompanying LICENSE file - -#ifndef ODB_META_POLYMORPHIC_HXX -#define ODB_META_POLYMORPHIC_HXX - -#include <odb/meta/class-p.hxx> -#include <odb/meta/remove-cv.hxx> - -namespace odb -{ - namespace meta - { - template <typename CVX> - struct polymorphic_p - { - typedef typename remove_cv<CVX>::r X; - - template <typename Y, bool C> - struct impl - { - static const bool r = false; - }; - - template <typename Y> - struct impl<Y, true> - { - struct t1: Y - { - t1 (); - }; - - struct t2: Y - { - t2 (); - - virtual - ~t2 () throw (); - }; - - static const bool r = sizeof (t1) == sizeof (t2); - }; - - static const bool r = impl<X, class_p<X>::r>::r; - }; - } -} - -#endif // ODB_META_POLYMORPHIC_HXX |