aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/type-id.txx
diff options
context:
space:
mode:
Diffstat (limited to 'cutl/compiler/type-id.txx')
-rw-r--r--cutl/compiler/type-id.txx18
1 files changed, 18 insertions, 0 deletions
diff --git a/cutl/compiler/type-id.txx b/cutl/compiler/type-id.txx
new file mode 100644
index 0000000..9fee905
--- /dev/null
+++ b/cutl/compiler/type-id.txx
@@ -0,0 +1,18 @@
+// file : cutl/compiler/type-id.txx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+namespace cutl
+{
+ namespace compiler
+ {
+ template <typename X>
+ inline
+ type_id::
+ type_id (X const volatile& x)
+ : ti_ (&typeid (x))
+ {
+ }
+ }
+}