summaryrefslogtreecommitdiff
path: root/libcult/cult/rtti/type-id.txx
diff options
context:
space:
mode:
Diffstat (limited to 'libcult/cult/rtti/type-id.txx')
-rw-r--r--libcult/cult/rtti/type-id.txx18
1 files changed, 18 insertions, 0 deletions
diff --git a/libcult/cult/rtti/type-id.txx b/libcult/cult/rtti/type-id.txx
new file mode 100644
index 0000000..4fd771a
--- /dev/null
+++ b/libcult/cult/rtti/type-id.txx
@@ -0,0 +1,18 @@
+// file : cult/rtti/type-id.txx
+// author : Boris Kolpackov <boris@kolpackov.net>
+// copyright : Copyright (c) 2005-2010 Boris Kolpackov
+// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+namespace Cult
+{
+ namespace RTTI
+ {
+ template <typename X>
+ inline
+ TypeId::
+ TypeId (X const volatile& x)
+ : ti_ (&typeid (x))
+ {
+ }
+ }
+}