Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Invalid arguments for Template typedef w/ CDT 8.1
Invalid arguments for Template typedef w/ CDT 8.1 [message #898992] Mon, 30 July 2012 04:25 Go to next message
Matt Davies is currently offline Matt DaviesFriend
Messages: 26
Registered: July 2009
Location: Brisbane
Junior Member
Hi Guys,

Here is another one. The following code compiles without complaint with g++ 4.7.0.

template < typename T >
class Float
{
    typedef typename UIntWithSizeS< sizeof ( T ) >::UInt Bits;
    ...
    static T ReinterpretBits ( const Bits bits ) {...}
    ...
    static T Infinity () {
        return ReinterpretBits ( k_exponent_bit_mask );
    }
    ...
}


Here, CDT 8.1 states that the call to ReinterpretBits is in error as the method takes only void.

Invalid arguments 'Candidates are: #0 ReinterpretBits(void)'


As CDT 8.0 finds no such error this appears to be a bug. Indeed there are CDT 8.1 errors wherever the Bits typedef is referenced.

Opinions?
Re: Invalid arguments for Template typedef w/ CDT 8.1 [message #899473 is a reply to message #898992] Wed, 01 August 2012 05:22 Go to previous message
Matt Davies is currently offline Matt DaviesFriend
Messages: 26
Registered: July 2009
Location: Brisbane
Junior Member
I have submitted bug 386365 in response to this issue.

Thanks.
Previous Topic:Invalid overload of std::forward w/ CDT 8.1
Next Topic:debugger launch is slow (cygwin, gdb, C++)
Goto Forum:
  


Current Time: Fri Apr 26 22:51:01 GMT 2024

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

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

Back to the top