how to assign to shared obj.systime?

mw mingwu at gmail.com
Fri Jul 10 05:12:06 UTC 2020


On Friday, 10 July 2020 at 03:01:20 UTC, mw wrote:
> On Friday, 10 July 2020 at 02:59:56 UTC, mw wrote:
>> Error: template std.datetime.systime.SysTime.opAssign cannot 
>> deduce function from argument types !()(SysTime) shared, 
>> candidates are:
>> /usr/include/dmd/phobos/std/datetime/systime.d(659,17):        
>> opAssign()(auto ref const(SysTime) rhs)
>
> of course, better without casting.

looks like we still have to cast:

https://forum.dlang.org/post/lehfwimpolhrmkfmtacn@forum.dlang.org


as of 2020, sigh.



More information about the Digitalmars-d-learn mailing list