Selon Naoufel El Bachir <
[hidden email]>:
> Hi,
> I was looking at the Observable class and have a few
> questions:
>
> - Is there any reason this class is not abstract ?
Is there any reason to be abstract ;-)
> - What happens when Observable is deleted ? Does not
> it need to notify Observers in its destructor ?
Classes derived from Observers contain a "link" to Observable class using Handle
or shared_ptr. It ensure that observed classes are not destroyed since
Observer class observes.
--
Nicolas Di Césaré
http://nicolas.dicesare.free.fr