Fix #13093 C++ Atomics: operator= is implicitly deleted because the default definition would be ill-formed (#21169)
* add test * fix #17982 Invalid C++ code generation when returning discardable var T * fix #13093 * cpp atomic good example * clearify the condition
This commit is contained in:
parent
7031ea65cd
commit
a7bae919ad
5 changed files with 54 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ when defined(cpp) or defined(nimdoc):
|
|||
## with other moSequentiallyConsistent operations.
|
||||
|
||||
type
|
||||
Atomic*[T] {.importcpp: "std::atomic", completeStruct.} = object
|
||||
Atomic*[T] {.importcpp: "std::atomic", completeStruct, requiresInit.} = object
|
||||
## An atomic object with underlying type `T`.
|
||||
raw: T
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue