#112 pointers to C++ template classes

closed-works-for-me
python (259)
5
2002-05-25
2001-11-30
Anonymous
No

I think an extra underscore shows up in some SWIG types
that involve templates:

I have the template class Vector<DisjointBoxLayout>

down in:

#0 SWIG_TypeCheck (c=0x8132cd4
"_p_Vector__DisjointBoxLayout__", ty=0x40330720)
at chombo_2d_DEBUG/chombo_2d_DEBUG.c:135
#1 0x4026b83c in SWIG_ConvertPtr (obj=0x8132cb8,
ptr=0xbffff69c, ty=0x40330720, flags=1)
at chombo_2d_DEBUG/chombo_2d_DEBUG.c:389

I can see the type get passed over, like this:

(gdb) p c
$8 = 0x8132cd4 "_p_Vector__DisjointBoxLayout__"
(gdb) n
(gdb)
(gdb) p s
$9 = (swig_type_info *) 0x40330734
(gdb) p s->name
$10 = 0x4031a549 "_p_Vector_DisjointBoxLayout_"

the type on the argument gets passed over because of
the extra underscores in the type

i have a SWIG_type for this object defined in the .c
file as

#define SWIGTYPE_p_Vector_DisjointBoxLayout_
swig_types[27]

where does this function get the extra underscores from
?

Discussion

  • David M. Beazley

    • assigned_to: nobody --> beazley
    • status: open --> open-works-for-me
     
  • David M. Beazley

    Logged In: YES
    user_id=7557

    Need more information.

     
  • David M. Beazley

    Logged In: YES
    user_id=7557

    Fixed in 1.3.12.

     
  • David M. Beazley

    • status: open-works-for-me --> closed-works-for-me
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks