![](/img/trans.png)
[英]Errors in xtr1common and type_traits when trying to build a originally VS2013 C++ project using VS2019
[英]Type traits in VS2013
int main()
{
struct C {
C(const C&) = delete;
C& operator= (const C&) = delete;
C(C&&) {}
C& operator=(C&&) { return *this; }
};
static_assert(std::is_copy_constructible<C>::value &&
std::is_copy_constructible<C>::value,
"");
}
为什么在VS2013中可以成功编译上面的代码?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.