From: SourceForge.net <no...@so...> - 2010-10-25 09:10:16
|
Bugs item #3094685, was opened at 2010-10-25 11:10 Message generated for change (Tracker Item Submitted) made by packadal You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3094685&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: packadal (packadal) Assigned to: Nobody/Anonymous (nobody) Summary: SWIG does not detect reference type Initial Comment: Hello, When I run SWIG on my source code, it generates invalid code, because I have hidden a reference type in a struct member: template <typename TYPE> struct ReturnType { typedef const TYPE& ConstValue; typedef TYPE& Value; }; Swig generates tlp::ReturnType< tlp::PointType::RealType >::ConstValue result; when wrapping a function returning a ReturnType<...>::ConstValue and gcc complains this is a reference type and it's not initialized. Hope this is not an impossible feature to implement :) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3094685&group_id=1645 |