[dgplug-users] assignment suppression is giving a warning

Aanjhan R aanjhan at gmail.com
Sat Dec 26 04:26:26 PST 2009


On Sat, Dec 26, 2009 at 1:14 PM, Sunny Sharma <sunny20062010 at gmail.com> wrote:
> In c++, can we define a constructor in a .h extension file? we can obviously
> declare the constructor and the functions in the .h file extension but can
> we define it also?

I am not an expert in CPP. But my cents here:

Basics : Constructors are like functions. Except for some differences.
(which you can google up)
Obvious Answer :  Why would you want to implement a function in the header file?
Food for thought : Why do people not define functions in a header file?

And only if you after you have thought about the above question click
on the below link :)

http://stackoverflow.com/questions/1617055/function-implementation-in-file-h-vs-in-file-cxx

Regards,
Aanjhan



More information about the Users mailing list