I seem to be having problems with a compiler/library bug. When I try
#include <iostream>
#include <type_traits>
#include <memory>
int main()
{
typedef std::unique_ptr<int> T;
std::cout << "is_copy_assignable: "
<< std::is_copy_assignable<T>::value
<< "\n"
<< "is_copy_constructible: "
<< std::is_copy_constructible<T>::value << "\n";
}
with Visual Studio 2012 Update 1 I get
is_copy_assignable: 1
is_copy_constructible: 1
instead of
is_copy_assignable: 0
is_copy_constructible: 0
Is there an alternative solution?