|
|
>-----Original Message-----
>From: gccxml-bounces+sbalasub=qualcomm.com@xxxxxxxxxx [mailto:gccxml-
>bounces+sbalasub=qualcomm.com@xxxxxxxxxx] On Behalf Of Roman Yakovenko
>Sent: Tuesday, August 01, 2006 10:02 PM
>To: Development of Python/C++ integration
>Cc: gccxml@xxxxxxxxxx
>Subject: [GCC-XML] Re: [C++-sig] Problem exposing templates
>
>On 8/2/06, Balasubramanyam, Shivakumar <sbalasub@xxxxxxxxxxxx> wrote:
>> Hi,
>
>Good morning.
>
>> Is there any ways else to explicitly instantiate the template?
>
>Yes, you can write C++ code that uses that functions and feed it to
gccxml.
>
>P.S. Also gccxml is involved in the process it has nothing to do with
>the problem:
>http://gccxml.org/HTML/FAQ.html
[shiva] Roman, I understood the second part of my question, which was
using typedef for explicit instantiation.
Now I declared using "typedef Stack<int>::Stack Stack_Int;"
I still see pyplusplus generate the _GLOBAL function (see below) which
results in compilation error?
{ //::_GLOBAL__D_Stack.hLZJ4nd
typedef void ( *function_ptr_t )( );
bp::def(
"_GLOBAL__D_Stack.hLZJ4nd"
, function_ptr_t( &::_GLOBAL__D_Stack.hLZJ4nd )
, bp::default_call_policies() );
}
{ //::_GLOBAL__I_Stack.hLZJ4nd
typedef void ( *function_ptr_t )( );
bp::def(
"_GLOBAL__I_Stack.hLZJ4nd"
, function_ptr_t( &::_GLOBAL__I_Stack.hLZJ4nd )
, bp::default_call_policies() );
}
Thanks,
Shiva
_______________________________________________
C++-sig mailing list
C++-sig@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/c++-sig
|
|