Hi,
I remember reading a document that advised to prefer 'operator void*'
over 'operator bool' or other way round, when I want to provide the ability
to use code like this:
test_class t;
while (t)
{
// do stuff
};
But I cannot remember why and which method was prefered.
Thanks for the help!
--
jb
(replace y with x if you want to reply by e-mail)
I remember reading a document that advised to prefer 'operator void*'
over 'operator bool' or other way round, when I want to provide the ability
to use code like this:
test_class t;
while (t)
{
// do stuff
};
But I cannot remember why and which method was prefered.
Thanks for the help!
--
jb
(replace y with x if you want to reply by e-mail)
Comment