Am I applying inout incorrectly?No, you need to apply it to wrap as well. I can't get run.dlang.io to work for posting a link, so here is my modified version:
Ah bugger, right!Ok so there's no way to make explicit instantiation involving immutable work in the face of an inout parameter? Seems rather inconsistent no?
https://issues.dlang.org/show_bug.cgi?id=19126 Thanks, - Ali