CUDT::CUDT(const CUDT& ancestor) { CUDT();
// Set the following properties to the same as the ancestor. ......
}
上面的代码是什么意图?想要调用默认的CUDT::CUDT()构造函数? 如果我对c++的理解没有错的话,这样写是不会调用到构造函数的,只是创建了一个匿名临时对象。 请要么使用new replace语法,要么把CUDT::CUDT()的代码拷贝过来才能有效。
UDT5还不能用,请继续使用UDT4。
您好谷博士,请问现在UDT5可以用了吗?
好的,谢谢回复
Log in to post a comment.
CUDT::CUDT(const CUDT& ancestor)
{
CUDT();
// Set the following properties to the same as the ancestor.
......
}
上面的代码是什么意图?想要调用默认的CUDT::CUDT()构造函数?
如果我对c++的理解没有错的话,这样写是不会调用到构造函数的,只是创建了一个匿名临时对象。
请要么使用new replace语法,要么把CUDT::CUDT()的代码拷贝过来才能有效。
UDT5还不能用,请继续使用UDT4。
您好谷博士,请问现在UDT5可以用了吗?
好的,谢谢回复