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

Use to_address() #38

Open
breese opened this issue Sep 28, 2019 · 2 comments
Open

Use to_address() #38

breese opened this issue Sep 28, 2019 · 2 comments

Comments

@breese
Copy link
Owner

breese commented Sep 28, 2019

From #35

Allocator construction shouldn't use addressof(*ptr) but instead to_address(ptr) (using addressof(*ptr) here before ptr references an object of T is undefined behavior).

@breese
Copy link
Owner Author

breese commented Sep 28, 2019

Good catch.

When was to_address added to Boost? 1.65?

@breese breese changed the title Use std::to_address Use to_address() Sep 28, 2019
@glenfe
Copy link

glenfe commented Oct 4, 2019

Affirmative (1.65)

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