Skip to content

std::flat_map allocator-extended copy/move constructor #4779

Answered by frederick-vs-ja
duanqn asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is a bug. _Flat_map_base doesn't have access to the members in derived classes (where the access control is changed to private).

I'll fix this by static_cast-ing the parameters to (const) _Flat_map_base& first.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by duanqn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants