Home Dashboard Directory Help
Search

std::is_function does not work on rvalue reference types by Erik Olofsson


Status: 

Closed
 as Fixed Help for as Fixed


3
0
Sign in
to vote
Type: Bug
ID: 534756
Opened: 2/18/2010 4:52:53 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Compile code below for reproduction. Uncomment block below for fix.

#include <type_traits>

// Uncomment to make compile
/*
namespace std
{
    template<class _Ty>
        struct is_function<_Ty&&>
        : false_type
        {    // determine whether _Ty is a function
        };
}
*/

using namespace std;
typedef int && CTestRef;
static_assert(!is_function<CTestRef>::value, "");
Details
Sign in to post a comment.
Posted by Microsoft on 11/1/2010 at 4:39 AM
Hi,

Thanks again for reporting this bug. We've fixed it, and the fix will be available in VC11.

As always, if you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 2/25/2010 at 6:34 PM
Hi,

Thanks for reporting this bug. While it's too late for us to fix this in VC10 RTM, we're keeping it active so that it can be fixed in VC11.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 2/18/2010 at 7:10 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Posted by Microsoft on 2/18/2010 at 7:09 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.