Re: Problems with const/non-const overloads of member functions

2010-06-25 Thread Steven Schveighoffer
On Fri, 25 Jun 2010 09:09:07 -0400, Richard Webb wrote: Using the latest DMD2, the code: // class c1 { void foo() const { } void foo() { } void bar() const { foo(); } } // fails to compile with the error: constest.d(15): Error: function constest.c1.foo

Problems with const/non-const overloads of member functions

2010-06-25 Thread Richard Webb
Using the latest DMD2, the code: // class c1 { void foo() const { } void foo() { } void bar() const { foo(); } } // fails to compile with the error: constest.d(15): Error: function constest.c1.foo () is not callable using argument types () const However, if