[英]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.