[REG2.064a] Issue 11242 - Fails to infer template argument with inout

http://d.puremagic.com/issues/show_bug.cgi?id=11242