Home Dashboard Directory Help

C++ Compiler issue with function template and SFINAE by svenschmidt75



Sign in
to vote
Type: Bug
ID: 790268
Opened: 6/16/2013 10:17:39 AM
Access Restriction: Public
User(s) can reproduce this bug


Compiling the attached C++ code fails, but should not (I think).

Sign in to post a comment.
Posted by Microsoft on 7/9/2013 at 11:20 PM
We've also provided a workaround. See the workarounds tab.
Posted by Microsoft on 7/9/2013 at 11:20 PM
Hi s-schmidt,

Thank you for taking the time to provide your feedback. After reviewing your reported issue, in the context of all the issues reported to us, we have decided not to take any action on this feedback at this time. We will re-consider our decision for a future release.

If this issue is severe, causing critical business situations or blocking your product development or deployment, please go to http://support.microsoft.com or call 1-800-MICROSOFT for assistance.
For Microsoft premier customers, please contact your administrator, your Technical Account Manager, or your Microsoft premier account representative.

Karl Niu
Posted by Microsoft on 6/16/2013 at 7:45 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 6/16/2013 at 10:51 AM
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.
Posted by Microsoft on 7/9/2013 at 11:20 PM
template<typename EXPR>
struct expression_traits {
typedef std::false_type is_vector_expression;
enum {value = is_vector_expression::value};
struct expression_traits<Vector> {
typedef std::true_type is_vector_expression;
enum {value = is_vector_expression::value};

And use 'expression_traits<type>::value' directly.