Opened 18 years ago
Closed 18 years ago
#304 closed Bugs (Fixed)
atomic_count_gcc.hpp does not compile on cygwin gcc 3.3.3
Reported by: | forester22 | Owned by: | Peter Dimov |
---|---|---|---|
Milestone: | Component: | None | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
this operator long() const { return __exchange_and_add(&value_, 0); } causes error because on cygwin __exchange_and_add() is declared as: static inline _Atomic_word __attribute__ ((__unused__)) __exchange_and_add (volatile _Atomic_word *__mem, int __val); value_ must be made mutable or cast must be added in operator long() const.
Note:
See TracTickets
for help on using tickets.