Closed Bug 506983 Opened 12 years ago Closed 12 years ago

IPDL doesn't allow templatized classes to be used

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bent.mozilla, Unassigned)

References

Details

IPDL currently barfs whenever it encounters a |<| character. I want to be able to say 'using nsTArray<Foo>;' and then use |nsTArray<Foo>| as an arg in my methods.
Pushed
adf6396d48dd Chris Jones - bug 506983: bare minimum support for C++ template types in IPDL
"Bare minimum" here means that IPDL

 (1) treats template instantiations like fancy identifiers; i.e., "foo_bar_" and "foo<bar>" are not any more different than "foo" and "bar"
 (2) only parses template instantiations of one param
 (3) doesn't handle qualified template instantiations, like "foo::bar<T>"

These can be added as necessary, although case (3) will require some big changes and I'd prefer not to implement it.  Templates can be worked around generally through typedef's anyway (and IMHO this leads to cleaner code).
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Using statements are ok but you can't use the classes as args yet.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Pushed
4ed1c307b8c9 Chris Jones - bug 506983: allow template types in param lists
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.