[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Philosophical question
From:       Cyrille Berger <cberger () cberger ! net>
Date:       2006-11-17 15:03:47
Message-ID: 200611171603.47582.cberger () cberger ! net
[Download RAW message or body]

> QSomeThing anotherOne = thatThing;
>
> and
>
> QSomeThing anotherOne(thatThing);
>
> ?
if there is an overloaded version of operator=, then in the first case, the 
operator= is called, and in the second case it's the copy constructor. But if 
there isn't an overloaded version of operator=, it's completely equivalent.

-- 
--- Cyrille Berger ---
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic