Adrián Pérez
Adrián Pérez

Reputation: 2216

How to keep naming convention of a project while using third party libraries in C++?

I'm thinking about this: Is it common to, for instance, write macros to create an alias to functions, variables, or any other element coming from a third party library that does not use your naming convention?. If yes, what is the best way to do it, just writing macros?

Upvotes: 3

Views: 562

Answers (2)

RolandXu
RolandXu

Reputation: 3678

The macro is so hard to write and read. So easiest way is to hire somebody to help u converting the naming conventions

Upvotes: 0

Arafangion
Arafangion

Reputation: 11950

"A foolish consistency is the hobgoblin of little minds". Stop worrying so much about the naming convention - enforce it within the project, sure, but don't make third-party libraries conform to it.

Infact, the small differences could be useful in helping the reader see what kind of code they are dealing with at a glance.

Upvotes: 8

Related Questions