Afficher un message
Vieux 25/02/2008, 22h46   #2
Victor Bazarov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to instantiate objects in a public include file

Ed J wrote:
> In a public include file, how can I declare an object and instantiate
> an object all in one line, avoid seemingly duplicate information?[..]


Never instantiate an object in a header. As soon as the header is
included in more than one translation unit (and if it isn't why it
is a header, right?), you get the object defined more than once.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


  Réponse avec citation
 
Page generated in 0,04303 seconds with 9 queries