On Saturday, 19 September 2015 at 10:16:58 UTC, John Colvin wrote:
On Saturday, 19 September 2015 at 09:33:02 UTC, OlaOst wrote:[...]2 approaches: 1) use a function instead. E.g. test.get!int(0); isn't too bad 2) If you really want to use [], do something like this: [...]
Thanks, option 1 is what I'm using today. It's a little annoying though, since templated OpIndexAssign works perfectly.