23 Aug
2009
23 Aug
'09
2:27 a.m.
Shaolin wrote:
Thanks for the reply Michael. The first example looks easier to digest. I have a question, what exactly does the following piece of code from the struct do:
my_helper(FileThread* object) : object_( object ){}
I have seen it used once or twice before but cant find any documentation on it.
Shaolin - This is simply a constructor for the my_helper structure. It takes a pointer to a FileThread object. 'object_' is a member variable and it is being initialized in the initializer list of the constructor with 'object'. You may also want to look through a C++ tutorial. Regards - Michael -- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com