Re: struct->struct->class in C++ no constructor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jul 21, 2008, "Wesley Smith" <wesley.hoke@xxxxxxxxx> wrote:

> At issue is that Tube<T>'s constructor isn't getting called when Clock
> is allocated on the stack.

Two thoughts:

- copy constructor being called instead

- syntax that declares a function returning a Clock, rather than an
object of type Clock

Without the definition, it's hard to give any definitive answer.

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}
FSFLA Board Member       ¡Sé Libre! => http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux