aboutsummaryrefslogtreecommitdiff
path: root/odb/meta/polymorphic-p.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-18 20:02:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-18 20:02:11 +0200
commit2636e266dc7a048e52b40b668c460c2793e897c4 (patch)
tree9717f573d9733b8cfa09a15ee44ed7768c427d7b /odb/meta/polymorphic-p.hxx
parentdce5d0658e67ced4d5fa64f98f598b86917927a7 (diff)
Move shared_ptr to the details namespace
Diffstat (limited to 'odb/meta/polymorphic-p.hxx')
-rw-r--r--odb/meta/polymorphic-p.hxx51
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