Y
Hacker News
new
|
ask
|
show
|
jobs
by
stabbles
2526 days ago
Not all containers though, since C++17 std::vector, std::list and std::forward_list do support incomplete element types as long as the allocator meets certain requirements. So std::vector<Node> is definitely OK.
2 comments
psurge
2526 days ago
Thanks for pointing this out! I didn't know that C++17 had relaxed this restriction.
link
codr7
2526 days ago
Very nice, had no idea.
Nodes it is then :)
Do you have any links to share describing the change?
Thanks!
link