I don't know why this code don't compile (22 lines)



Hello,

I was wondering if someone know what I do wrong and why this code don't compile properly.

Thank you,
Ben.

---

// no, it's not an example of metasyntactic variables abuse

namespace Foo {
class Bar {
public:
static int baz (void) {return 0;}
};
}

typedef Foo::Bar Foobar;

class Waldo {
public:
// this line compile
void qux (int i = Foo::Bar::baz ()) {}

// **************************
// but this one don't compile
// **************************
void quux (int i = Foobar::baz ()) {}

// this one compile too
void quuux (void) {int i = Foobar::baz ();}
};
.


Loading