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

Make amc::vector declaration work with incomplete types like std::vector #26

Merged
merged 2 commits into from
Sep 1, 2021

Conversation

sjanel
Copy link
Member

@sjanel sjanel commented Sep 1, 2021

At instantiation of amc::vector with an incomplete type, there was a compiler error as we try to access to sizeof(T) and std::is_trivially_destructible<T>, unlike std::vector which works fine (and is defined standard behavior from C++17).

This PR makes it possible to use amc::vector with incomplete types.

@sjanel sjanel added the enhancement New feature or request label Sep 1, 2021
@sjanel sjanel requested a review from r1viollet September 1, 2021 13:32
@sjanel sjanel linked an issue Sep 1, 2021 that may be closed by this pull request
@sjanel sjanel force-pushed the feature/amcvectorincompletetype branch from 8768eec to 4f233ee Compare September 1, 2021 14:29
@sjanel sjanel force-pushed the feature/amcvectorincompletetype branch from 4f233ee to 2d9ae6c Compare September 1, 2021 20:54
@sjanel sjanel merged commit ba91804 into AmadeusITGroup:main Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow amc::vector to accept incomplete types
1 participant