Open ecorm opened 7 years ago
Agreed in principle, though, since it's a one-header library, it might be better to rename the file to better_enums.h
, or something.
If you decide to rename to better_enums.h
, you should at least put it inside an include
subdirectory, so that all the other files in your repository's root directory don't pollute the #include
path. Many large project build scripts clone third-party dependencies directly from GitHub and leave the subrepo's file/directory structure intact.
Fair enough.
You should put
enum.h
inside aninclude/betterenums
subdirectory of your Git repository. This would allow superproject build scripts to clone your Git repo as-is and add-I superproject/thirdpartylibs/betterenums/include
compiler flags where appropriate.To include your header, we would use
which would avoid collisions with other headers named
enum.h
.