search of a workaround

Namespace rswhite4 at googlemail.com
Sat Feb 9 14:54:22 PST 2013


On Saturday, 9 February 2013 at 22:23:07 UTC, Namespace wrote:
> It seems your template has problems with this:
>
> struct A { }
>
> class B {
> public:
> 	const int bar(ref A a) {
> 		return 42;
> 	}
> 	
> 	mixin(rvalue!(bar));
> }
>
> remove the 'const' and it works fine.

It seems that D has no functionality, to detect if a method is 
const.


More information about the Digitalmars-d-learn mailing list