Erik Wikström <er****@student.chalmers.sewrote in message ...
/* """
On 16 Maj, 13:29, John Smith <john.sm...@hotmail.comwrote:
How to define a constant with default value in a class?
I'd like to define a boolean constant, for example
const bool b = false;
class Foo{
const bool b;
public:
Foo(bool arg = false);
}
Foo:Foo(bool b) : b(arg) {}
""" */
<choke><gagI bet I hate 'typos' as much as you. <G>
Foo::Foo( bool arg ) : b(arg) {}
--
Bob R
POVrookie