Menu

Naming/directory conventions

2000-12-18
2001-01-01
  • Sebastian Gonzalez Montesinos

    I have read the C++ coding standards, i think they're good. I have one suggestion, however, which regards to section 5.1, "Files and Directories": header files should be put in a project-specific directory. For example, headers for libcorelinux are in corelinux/*, Common C++ defines c++/*, and so on. It is obvious that users must not include those paths in compiler's -I flag, the intent is that, at source code level, one can differentiate between common.hpp of library XX and common.hpp of a library YY:

    #include <XX/common.hpp>
    #include <YY/common.hpp>

    This is not explicitly stated in the standards, is it? If it does, then i suggest to move to section 5.1.

    Thanks.

     
    • Frank V. Castellucci

      Thanks,
      I have opened a defect (127216) and will have the changes up soon.

       

Log in to post a comment.

MongoDB Logo MongoDB