G
Giuseppe:G:
Hi, the following piece of code is rather obscure for me
struct Foo
{
Foo( int _x ) : x(_x) {}
....
};
what's the meaning of that construct? I understand Foo() must be a
constructor, right? But then what's with the syntax after the ":" ??
Thanks!
Giuseppe
struct Foo
{
Foo( int _x ) : x(_x) {}
....
};
what's the meaning of that construct? I understand Foo() must be a
constructor, right? But then what's with the syntax after the ":" ??
Thanks!
Giuseppe