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
List(Token) is (not currently but should be) a compile error because the list implementation calls realloc on T which copies the data. And List itself is non-copyable, so that bubbles up and means you can't have tokens: List(Token).
Make this a compile error.
Should we specify move semantics so that this can actually be allowed and work correctly?
The text was updated successfully, but these errors were encountered:
andrewrk
added
the
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
label
Sep 14, 2016
may be not related but: any plans to make object lifetimes accesible in some way to templates so they can be compared at compile time? (ie, if an object can outlive me ('a<'b) i can not share a resource) (ala A' / B' on rust) IMO if this feature is implemented should be optional. as introduces too much noise in the templates definitions
Let's say we have a non-copyable List data structure (current implementation in std matches this because of the
prealloc_data
field).List(Token)
is (not currently but should be) a compile error because the list implementation callsrealloc
onT
which copies the data. AndList
itself is non-copyable, so that bubbles up and means you can't havetokens: List(Token)
.The text was updated successfully, but these errors were encountered: