M
Matthias
Hi,
I often do things like this:
class A
{
....
};
A::A()
: some_member( foo() ), // init some_member with return value of foo()
some_other_member( bar() ) // same
{}
Is this considered bad style or even illegal? I found it to be very handy.
I often do things like this:
class A
{
....
};
A::A()
: some_member( foo() ), // init some_member with return value of foo()
some_other_member( bar() ) // same
{}
Is this considered bad style or even illegal? I found it to be very handy.