Reputation: 42379
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
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