I don't know why this code don't compile (22 lines)
- From: Ben Thomas <askme@xxxxxxxxxx>
- Date: Tue, 28 Feb 2006 20:03:17 -0500
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 ();}
};
.
- Follow-Ups:
- Re: I don't know why this code don't compile (22 lines)
- From: Igor Tandetnik
- Re: I don't know why this code don't compile (22 lines)
- Prev by Date: Re: UNICODE to MBCS
- Next by Date: Re: How to convert TCHAR type to standard ISO C++ string?
- Previous by thread: UNICODE to MBCS
- Next by thread: Re: I don't know why this code don't compile (22 lines)
- Index(es):
Loading