xmllmx
xmllmx

Reputation: 42379

Why does std::is_copy_constructible not work as expected?

My compiler is VC++ 2013 RC.

#include <type_traits>

struct A
{
    A() = default;
    A(const A&) = delete;
};

int main()
{
    auto b = std::is_copy_constructible<A>::value;
    // Now b is TRUE! Rather than false.
}

Is this a BIG BUG of VC++ 2013 RC?

Update:

ideone gives the corret result.

Upvotes: 0

Views: 321

Answers (1)

TemplateRex
TemplateRex

Reputation: 70546

This should be a bug in Visual C++ 2013. According to their website, =delete and =default are to be implemented in the RTM version, so it's surprising that the RC does not properly evaluate it. You could check their bug database and file a new one if it hasn't been mentioned before.

Upvotes: 1

Related Questions