std.algorithm can not be used inside pure functions?
Szabo Bogdan via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 6 08:05:56 PDT 2017
On Saturday, 6 May 2017 at 15:01:16 UTC, Adam D. Ruppe wrote:
> On Saturday, 6 May 2017 at 14:14:41 UTC, Szabo Bogdan wrote:
>> oh yes, I get it... begin and end are `SysTime`.. there is any
>> workaround for this?
>
> Don't use pure?
>
> I don't think any of the SysTime conversion methods are pure
> since all of them call C functions which pull from the time
> zone... even if you subclassed the timezone to be pure, SysTime
> wouldn't pick that up since it uses the impure interface.
>
> I guess you could use a casted wrapper to hack in pure too, but
> I'd say just take the keyword off.
Thanks!
More information about the Digitalmars-d-learn
mailing list