J
Jakob Bieling
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!
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!