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

Compilation fails, "changing the meaning of aligned_storage_t" #47

Open
thmxv opened this issue Jul 2, 2020 · 0 comments
Open

Compilation fails, "changing the meaning of aligned_storage_t" #47

thmxv opened this issue Jul 2, 2020 · 0 comments

Comments

@thmxv
Copy link

thmxv commented Jul 2, 2020

The following code does not compile on my system because it is "changing the meaning of aligned_storage_t"

using aligned_storage_t
    = aligned_storage_t<sizeof(remove_const_t<T>),
                                      alignof(remove_const_t<T>)>;
using data_t = conditional_t<!Const<T>, aligned_storage_t,
                                              const aligned_storage_t>;

Changing it to the following code fixes the issue for me

using aligned_storage_t_
    = aligned_storage_t<sizeof(remove_const_t<T>),
                                      alignof(remove_const_t<T>)>;
using data_t = conditional_t<!Const<T>, aligned_storage_t_,
                                              const aligned_storage_t_>;
obidavis added a commit to obidavis/static_vector that referenced this issue Sep 22, 2023
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

1 participant