[Qt-interest] copy constructor in template class with QHash pointer member

Andre Somers andre at familiesomers.nl
Tue Aug 25 18:03:32 CEST 2009


Thiago Macieira wrote:
> Em Terça-feira 25 Agosto 2009, às 16:01:07, Andre Somers escreveu:
>   
>> I have a template class that has a QHash pointer as a member
>>     
>
> Why do you have a pointer to a QHash? Shouldn't a plain QHash be enough for 
> you? It would also solve your problem.
>
> sizeof(QHash) == sizeof(QHash*)
>   
Thanks, it does solve the issue.
Still, I am wondering why my first solution doesn't work?

André




More information about the Qt-interest-old mailing list