Menu

#1217 partial specialization not recognized

None
closed-fixed
None
5
2023-02-17
2011-12-25
Anonymous
No

SWIG does not seem to parse partial specializations of the form

template <T> class A< B<T> >;

An example interface file that produces incorrect wrappers is attached. After building the example, note that the "Example_Tag_int" class does not have a wrapped "b" method (but it should, according to the C++). I have only tested the issue with Python as the target language, but I suspect the problem is present in other targets as well.

Discussion

  • Olly Betts

    Olly Betts - 2022-02-02

    It's not a parse failure as the report seems to suggest, but indeed there still doesn't seem to be a wrapper generated for the b() method with current git.

     

    Last edit: Olly Betts 2022-02-02
  • Olly Betts

    Olly Betts - 2022-03-24
    • labels: parsing -->
    • Group: -->
     
  • William Fulton

    William Fulton - 2023-02-17
    • status: open --> closed-fixed
    • assigned_to: Marcelo Matus --> William Fulton
     
  • William Fulton

    William Fulton - 2023-02-17

    Duplicate of https://github.com/swig/swig/issues/1300 which is now fixed.

     

Log in to post a comment.