-
Notifications
You must be signed in to change notification settings - Fork 634
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
Misplaced static_assert in basic_field's move-assignment operator #2517
Comments
The same is true for std::vector. @vinniefalco What (if any) is the intention here? |
@madmongo1 your example is malformed, here is the corrected one that compiles successfully: https://godbolt.org/z/aaKjbaoEc |
I have no idea to be honest. Allocators are cancer. |
I ran into this as well and found related background in p0337 - Delete operator= for polymorphic_allocator
|
The static assert doesn't seem to be misplaced, move-assignments work fine: https://godbolt.org/z/7Pnn99KzW What is needed is support for |
@klemens-morgenstern ? Your example doesn't perform move-assignment at all: https://godbolt.org/z/vdfYrEE1e |
Or maybe a more simplified example showing it is unrelated to |
Version of Beast: 1.80.0
Steps necessary to reproduce the problem
https://godbolt.org/z/vdfYrEE1e
Error:
Proposed solution
Move the static_assertion from fields.hpp#L440 to the noexcept specifier:
And actually move assign the allocator instead of copy assigning it in fields.hpp#L1132.
The text was updated successfully, but these errors were encountered: