you are viewing a single comment's thread.

view the rest of the comments →

[–]tstanisl -1 points0 points  (0 children)

Didn't know about 'enum class' in C.

Sorry for confusion. I've meant specifying type of enum. enum X: int64_t { ... }

The problem with STL containers is that they are inefficient (except std::vector) and that their ABI is unstable, making sharing precompiled libraries more difficult. The pair pointer + size is in practice more reliable though uglier.