Code



Compilation output:

/d271/f57.d(7): Error: template core.atomic.cas cannot deduce function from argument types !()(shared(bool), bool, bool), candidates are: /opt/compilers/dmd2/include/core/atomic.d(856): core.atomic.cas(T, V1, V2)(shared(T)* here, const V1 ifThis, V2 writeThis) if (!is(T == class) && !is(T U : U*) && __traits(compiles, () { *here = writeThis; } )) /opt/compilers/dmd2/include/core/atomic.d(862): core.atomic.cas(T, V1, V2)(shared(T)* here, const shared(V1) ifThis, shared(V2) writeThis) if (is(T == class) && __traits(compiles, () { *here = writeThis; } )) /opt/compilers/dmd2/include/core/atomic.d(868): core.atomic.cas(T, V1, V2)(shared(T)* here, const shared(V1)* ifThis, shared(V2)* writeThis) if (is(T U : U*) && __traits(compiles, () { *here = writeThis; } ))

Paste info


Author: Guest
Views: 174
Private: no
Expires: Never
Uploaded: 13.01.18 11:14
Votes: 0

Compilation


Compiler: DMD 2.080.0 ( 2.080.0 )
Pointer size: m64

Actions