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.