S
Simon Elliott
I've got a requirement to implement a C++ class which should be usable
as if it were an unsigned long:
Foo my_foo;
my_foo = 1;
if (my_foo < 1000)
{
// do this
}
etc.
Is there a simple way I can do this with references, or do I need to
overload every operator under the sun?
as if it were an unsigned long:
Foo my_foo;
my_foo = 1;
if (my_foo < 1000)
{
// do this
}
etc.
Is there a simple way I can do this with references, or do I need to
overload every operator under the sun?