On Monday, 24 June 2013 at 14:15:55 UTC, Joseph Rushton Wakeling
wrote:
On 06/24/2013 03:05 PM, Craig Dillabaugh wrote:
Can anyone identify what I am doing wrong. Also I am curious to
know why std.range includes both Lockstep and lockstep - they
seem like the same thing.

lockstep is a helper function that returns an instance of Lockstep.

The reason is that if you instantiate a struct/class template directly you have to explicitly state the template parameters. A function template call can infer the template parameters and use them to instantiate a class instance.

Thanks. That makes sense ... I think.

Reply via email to