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

[mem.res.private] Questionable note in p7 #1698

Closed
timsong-cpp opened this issue Aug 2, 2017 · 0 comments
Closed

[mem.res.private] Questionable note in p7 #1698

timsong-cpp opened this issue Aug 2, 2017 · 0 comments
Assignees

Comments

@timsong-cpp
Copy link
Contributor

p7 says that for do_is_equal,

For a derived class D, a typical implementation of this function will immediately return false if dynamic_cast<const D*>(&other) == nullptr.

Once LWG 3000 is resolved, none of the concrete memory resource classes in the standard will perform a dynamic_cast in their do_is_equal. Given that, the assertion in the note that performing a dynamic_cast here is "typical" seems rather questionable.

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