Summary: core.thread.atomicOp too strict about types
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime

--- Comment #0 from David Simcha <> 2010-08-27 12:10:35 PDT ---
The following code should really work:

import core.atomic;

void main() {
    uint num;
    atomicOp!"+="(num, 1U);  // Works
    atomicOp!"+="(num, 1);  // Doesn't work because 1 is an int, not a uint.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to