Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for types with copy ctors (for D v2.095+) #70

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kinke
Copy link

@kinke kinke commented Jan 10, 2022

core.lifetime.copyEmplace() has been added in druntime v2.095.0.

@kinke kinke marked this pull request as draft January 10, 2022 16:11
@kinke
Copy link
Author

kinke commented Jan 10, 2022

I'm seeing inout-related trouble for copyEmplace, so converting to a draft:

src/druntime/import/core/lifetime.d(1233): Error: static assert:  "cannot copy-construct Seq!(PriceBar!(PriceBarType(PriceBarFlags.HasNoOpenInterest), -1, "Daily")) from inout(Seq!(PriceBar!(PriceBarType(PriceBarFlags.HasNoOpenInterest), -1, "Daily")))"
taggedalgebraic/source/taggedalgebraic/taggedunion.d(122):        instantiated from here: `copyEmplace!(inout(Seq!(PriceBar!(PriceBarType(PriceBarFlags.HasNoOpenInterest), -1, "Daily"))), Seq!(PriceBar!(PriceBarType(PriceBarFlags.HasNoOpenInterest), -1, "Daily")))`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant