Trouble with lockstep

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Mon Jun 24 07:15:44 PDT 2013


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.


More information about the Digitalmars-d-learn mailing list