You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Table should not need to copy its key argument during insertion:
import std/tables
typeNoCopies=objectproc`=copy`(a: varNoCopies, b: NoCopies) {.error.}
var t: Table[NoCopies, NoCopies]
t[NoCopies()] =NoCopies() # only moves
The same probably holds for a lot of std lib containers, ie the concept applies to all of them.
Nim Version
2.2
Current Output
Error: '=copy' is not available for type <NoCopies>; requires a copy because it's not the last read of 'key'; try to make key a 'sink' parameter; routine: rawInsert
Expected Output
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
Table should not need to copy its key argument during insertion:
The same probably holds for a lot of std lib containers, ie the concept applies to all of them.
Nim Version
2.2
Current Output
Expected Output
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: