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

Can someone help me solve itHi,recently I encountered some difficult problems when setting up the arbitrum environment. Could you please help me to solve them? #1068

Open
Wakuangdachengzi opened this issue Apr 30, 2021 · 1 comment

Comments

@Wakuangdachengzi
Copy link

5LC$J Q$Q%0`W4B$G 6CJXA

@hkalodner
Copy link
Contributor

hkalodner commented May 3, 2021

@joshuacolvin0 @PlasmaPower, just ran into this in an interview running on ubuntu. It appears that std::optional isn't required to be trivially copyable. It is in some standard library implementations, but not others, and std::atomic must contain something trivially copyable. It just so happens that all the main compilation setups we test with have a trivially copyable optional, so we didn't hit this internally.

No requirement in https://en.cppreference.com/w/cpp/utility/optional
Relevant stack overflow answer https://stackoverflow.com/questions/37621982/will-stdoptional-be-a-trivially-copyable-type-if-the-contained-type-is-a-trivi

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

No branches or pull requests

2 participants