[omniORB] compiling template with I::_ptr_type *

Duncan Grisby dgrisby@uk.research.att.com
Tue, 30 Jan 2001 16:51:05 +0000


On Monday 29 January, Janet Tvedt wrote:

> A few months ago I posted a message (details below).  However,
> I cannot get the following template function to compile:
>  
>      template <class Type> 
>      int getCosNamingObjectRef(Type::_ptr_type *a, ...

Depending on what you are trying to do, you quite probably want to be
using

     template <class Type> 
     int getCosNamingObjectRef(Type::_ptr_type a, ...

without the *. Other than that, precisely what error message are you
getting?

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --