Skip to content

Instantly share code, notes, and snippets.

@dtoma
Last active July 4, 2019 09:44
Show Gist options
  • Save dtoma/27630b625fbedf0f8e2dbca78a41bc8f to your computer and use it in GitHub Desktop.
Save dtoma/27630b625fbedf0f8e2dbca78a41bc8f to your computer and use it in GitHub Desktop.
A subset of C++

A Subset of C++

Like

RAII / unique_ptr

Using unique_ptr as a handle on a ressource is great (be it memory, file...).

https://cplusplusmusings.wordpress.com/2015/03/09/simplifying-code-and-achieving-exception-safety-using-unique_ptr/

STL algorithms

If anything, we need more.

Want to like

STL containers

Over-generic, sometimes surprising implementation details, missing some relatively common data structures.

Bright side: SG14 working on some, memory ressources instead of allocators, concepts...

Allocators

Generic programming

To be useful, templates really need SFINAE, constexpr if, type_traits, concepts... enable_if is still not great.

Ranges

A few months ago, long compile time, lack of doc, complex internals. Hopefully once everything has been standardized it will be better, because it looks great.

Parallel STL

A bit annoying to have to setup TBB right now.

Dislike

Exceptions

Macros

Header files

Distribution

Tooling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment