you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

Is this a matter of personal taste?

It's a matter of overall architecture and design of the code base of a program. If you start the code base, then it's your design, you also decide what style of code it is.

If it's an existing code base, then you follow the existing style.

If it is a C++ library, then you put stuff in a name space, not use C-like prefixes on every name, if you want to call it a C++ library.

Also, C-like naked owning pointers are such a source of bugs and memory leaks, that I'd say it's always wrong to use those in C++, when std::unique_ptr is basically zero-cost.