Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Invalid overload of std::forward w/ CDT 8.1
Invalid overload of std::forward w/ CDT 8.1 [message #898985] Mon, 30 July 2012 02:27 Go to next message
Matt Davies is currently offline Matt DaviesFriend
Messages: 26
Registered: July 2009
Location: Brisbane
Junior Member
Hi Guys,

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 >
class Prop
{
...
    template < typename U >
    Prop const & operator = (
        U && prop
        )
    {
        set ( std::forward< U > ( prop ) );

        return *this;
    }
...
}

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".

Suggestions?

[Updated on: Mon, 30 July 2012 05:48]

Report message to a moderator

Re: Invalid overload of std::forward w/ CDT 8.1 [message #899471 is a reply to message #898985] Wed, 01 August 2012 05:15 Go to previous message
Matt Davies is currently offline Matt DaviesFriend
Messages: 26
Registered: July 2009
Location: Brisbane
Junior Member
I have submitted bugs 386364 and 386363 in response to this issue.

Thanks.
Previous Topic: Program 'gcc' is not found in PATH
Next Topic:Invalid arguments for Template typedef w/ CDT 8.1
Goto Forum:
  


Current Time: Sun Oct 06 17:02:52 GMT 2024

Powered by FUDForum. Page generated in 0.03161 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top