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
|