summaryrefslogtreecommitdiff
path: root/TAO/tao/AnyTypeCode/Alias_TypeCode.inl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/AnyTypeCode/Alias_TypeCode.inl')
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode.inl31
1 files changed, 31 insertions, 0 deletions
diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode.inl b/TAO/tao/AnyTypeCode/Alias_TypeCode.inl
new file mode 100644
index 00000000000..d781ee5641f
--- /dev/null
+++ b/TAO/tao/AnyTypeCode/Alias_TypeCode.inl
@@ -0,0 +1,31 @@
+// -*- C++ -*-
+//
+// $Id$
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+template<typename StringType,
+ typename TypeCodeType,
+ class RefCountPolicy>
+ACE_INLINE
+TAO::TypeCode::Alias<StringType,
+ TypeCodeType,
+ RefCountPolicy>::Alias (
+ CORBA::TCKind kind,
+ char const * id,
+ char const * name,
+#if defined (__BORLANDC__) && (__BORLANDC__ < 0x572)
+ // Borland C++ currently can't handle a reference to
+ // const pointer to const CORBA::TypeCode_ptr
+ TypeCodeType tc)
+#else
+ TypeCodeType const & tc)
+#endif
+ : ::CORBA::TypeCode (kind)
+ , RefCountPolicy ()
+ , attributes_ (id, name)
+ , content_type_ (tc)
+{
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL