mirror of
https://github.com/status-im/nim-stew.git
synced 2025-01-23 10:29:44 +00:00
forward assign declarations (#65)
This commit is contained in:
parent
d8d914332d
commit
46068b49ae
@ -4,6 +4,10 @@ import
|
||||
|
||||
{.push raises: [Defect].}
|
||||
|
||||
func assign*[T](tgt: var seq[T], src: openArray[T]) {.gcsafe.}
|
||||
func assign*[T](tgt: var openArray[T], src: openArray[T]) {.gcsafe.}
|
||||
func assign*[T](tgt: var T, src: T) {.gcsafe.}
|
||||
|
||||
func assignImpl[T](tgt: var openArray[T], src: openArray[T]) =
|
||||
mixin assign
|
||||
when supportsCopyMem(T):
|
||||
|
Loading…
x
Reference in New Issue
Block a user