aboutsummaryrefslogtreecommitdiff
path: root/libcutl/compiler/type-id.txx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-16 20:29:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-02-24 16:40:04 +0300
commit8e761289a2446367267c6c0d9a26e734f0f78306 (patch)
treefb495d8c18801f271d124ee48731f10df396ca89 /libcutl/compiler/type-id.txx
parent4c8104756b92b9fa16b3a725e8a6aa620dfd606e (diff)
Get rid of legacy build systems and rename cutl/ to libcutl/
Diffstat (limited to 'libcutl/compiler/type-id.txx')
-rw-r--r--libcutl/compiler/type-id.txx16
1 files changed, 16 insertions, 0 deletions
diff --git a/libcutl/compiler/type-id.txx b/libcutl/compiler/type-id.txx
new file mode 100644
index 0000000..e23e4a5
--- /dev/null
+++ b/libcutl/compiler/type-id.txx
@@ -0,0 +1,16 @@
+// file : libcutl/compiler/type-id.txx
+// 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))
+ {
+ }
+ }
+}