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

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


3
0
Sign in
to vote
ID 534756 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 2/18/2010 4:52:53 PM
Access Restriction Public

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, "");
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)