Re: [luabind] Returning reference to abstract class
Brought to you by:
arvidn,
daniel_wallin
From: Arvid N. <c9...@cs...> - 2005-12-21 23:41:31
|
Hi Morten! On Dec 21, 2005, at 17:07, Mor...@se... wrote: > First of all, thanks for a marvellous library: I'm amazedat the > magic it does! > > Now to the problem: I have a member function returning a const- > reference to an abstract class. When binding that function, I get > compiler errors telling that it cannot instantiate an abstract > class. However, that shouldn't be necessary becasue it is a > reference that us returned. Below is a condensed example and the > resulting compiler output (Microsoft Visual C++ .NET 2003) > [...] > I just discovered that the code compiles if GetA returns a non- > const reference! I've checked in a fix for this to cvs head. Please try it and let me know if it solved the problem. I assume you were using cvs head already, right? > Another thing: Have you considered writing a paper about the design > of lubind? It would sure be interesting to know it works under the > hood. No, we haven't. We don't really have the time to do that. -- Arvid Norberg |