|Invalid overload of std::forward w/ CDT 8.1 [message #898985]
||Mon, 30 July 2012 02:27
| Matt Davies
Registered: July 2009
I am having difficulty understanding why I am getting this error. The code compiles without issue on g++ 4.7.0 but CDT doesn't like it.
template < typename T >
template < typename U >
Prop const & operator = (
U && prop
set ( std::forward< U > ( prop ) );
The indexer reports "Invalid overload of 'std::forward'" in both the editor (red squiggle) and problems view.
When performing a lookup, I am prompted to choose from several valid overloads: std::forward(? &&) and std::forward(? &) from /usr/include/c++/4.7.0/bits/move.h (which in itself does not contain CDT errors but some items defined here do not appear in the outline view (eg std::move for instance does not appear which is the subject of more problems not yet reported)).
Is this a known problem or does it appear that I might have a config issue in my project settings? I have defined __GXX_EXPERIMENTAL_CXX0X__ in "Preprocessor Includes".
[Updated on: Mon, 30 July 2012 05:48]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02699 seconds