From: SourceForge.net <no...@so...> - 2007-11-09 04:42:24
|
Bugs item #1828758, was opened at 2007-11-09 04:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1828758&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: code generation (general) Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Hartmut Seichter (retrakker) Assigned to: David M. Beazley (beazley) Summary: parser throws error for const instantiation Initial Comment: Following C++ code will not work with or without namespace. namespace aNS { class A { public: A(int num); }; const A anA(0); } The suggested workaround as: const A anA = A(0); is working but would mean for projects to replicate code from headers. There is no known way to use %ignore outside of a header to skip it for the time being. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1828758&group_id=1645 |