This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
namespace std { template<class _Elem, class _Traits> class basic_ostream : virtual public basic_ios<_Elem, _Traits> { // control insertions into a stream buffer public: basic_ostream(_Myt&& _Right) { // construct by moving _Right } _Myt& operator=(_Myt&& _Right) { // move from _Right return (*this); } void swap(_Myt& _Right) { // swap with _Right } }; template<class _Elem, class _Traits, class _Ty> inline basic_ostream<_Elem, _Traits>& operator<<(basic_ostream<_Elem, _Traits>&& _Ostr, _Ty _Val) { // insert to rvalue stream return (_Ostr << _Val); } }
Parser fail breaks code model significantly. We should support such constructions in 7.1
fixed http://hg.netbeans.org/cnd-main/rev/2ca22125ee8d
reviewed. looks safe and correct.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/2ca22125ee8d User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #205270 - R-value references breaks code model parser
integrated into 71 http://hg.netbeans.org/releases/rev/6581023fc400
Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/6581023fc400 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #205270 - R-value references breaks code model parser
Verified in NetBeans IDE 7.1 RC2 (Build 201111302200)