Преглед на файлове

Added stand-alone headers guideline.

[SVN r11774]
Dave Abrahams преди 24 години
родител
ревизия
9232e5e09a
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      more/header.htm

+ 4 - 0
more/header.htm

@@ -39,6 +39,10 @@ these are also reasonable guidelines for general use.
     to older approaches such as adding funny prefixes to global names. 
     to older approaches such as adding funny prefixes to global names. 
     Libraries which are designed to work well with other Boost libraries should
     Libraries which are designed to work well with other Boost libraries should
     be placed namespace <tt>boost</tt>.</li>
     be placed namespace <tt>boost</tt>.</li>
+
+  <li>Make sure that a translation unit consisting of just the
+  contents of the header file will compile successfully.
+
   <li>Place the header file in a sub-directory to prevent conflict with
   <li>Place the header file in a sub-directory to prevent conflict with
     identically named header files in other libraries.&nbsp; The parent
     identically named header files in other libraries.&nbsp; The parent
     directory is added to the compiler's include search path.&nbsp; Then both
     directory is added to the compiler's include search path.&nbsp; Then both

粤ICP备19079148号