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

Thanks for pointing this out! I didn't know that C++17 had relaxed this restriction.
Very nice, had no idea.

Nodes it is then :)

Do you have any links to share describing the change?

Thanks!