Menu

udt5里CUDT::CUDT(const CUDT& ancestor)代码问题

yavey
2013-01-30
2013-09-18
  • yavey

    yavey - 2013-01-30

    CUDT::CUDT(const CUDT& ancestor)
    {
    CUDT();

    // Set the following properties to the same as the ancestor.
    ......

    }

    上面的代码是什么意图?想要调用默认的CUDT::CUDT()构造函数?
    如果我对c++的理解没有错的话,这样写是不会调用到构造函数的,只是创建了一个匿名临时对象。
    请要么使用new replace语法,要么把CUDT::CUDT()的代码拷贝过来才能有效。

     
  • Yunhong Gu

    Yunhong Gu - 2013-01-30

    UDT5还不能用,请继续使用UDT4。

     
    • dream_li

      dream_li - 2013-09-18

      您好谷博士,请问现在UDT5可以用了吗?

       
  • yavey

    yavey - 2013-01-30

    好的,谢谢回复

     

Log in to post a comment.