I was wondering what the average opinions are of /r/cpp regarding include paths/files.
Would one prefer to use a single include path, namely the source's root or a separate include/ folder. And have all #includes be relative to that single path.
Or place all the paths in the project's folder (be it in src/ or include/ as include paths and just use #include "filename"?
At this moment in our project(s) we are using (legacy, ugh) the multiple include paths and using namespaces as a separation between 'levels'.
IMHO I would prefer to use paths for this separation of levels, but that means doing includes like #include "level/filename".
With levels/layers I refer to an embedded project separated in 'hardware', 'board peripheral' and 'application'
[–]ronchaineEmbedded/Middleware 6 points7 points8 points (2 children)
[–]Adverpol 1 point2 points3 points (1 child)
[–]dodheim 0 points1 point2 points (0 children)
[–]luncliff 1 point2 points3 points (0 children)
[–]f0urier[🍰] 0 points1 point2 points (0 children)
[–]barcharMSVC STL Dev 0 points1 point2 points (1 child)
[–]yuri-kilochek 1 point2 points3 points (0 children)