Is it possible to have a member in a class of a type of a class that has a constructor? As in:
1 2 3 4 5 6 7 8 9
class foo
{
foo(int value);
};
class bar
{
foo member(3); //doesn't work
};
But that doesn't work; it throws "[Error] 'bar::member' does not have a class type". Probably the compiler is mistaking that for a function declaration.