Просмотр исходного кода

Added stand-alone headers guideline.

[SVN r11774]
Dave Abrahams 24 лет назад
Родитель
Сommit
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. 
     Libraries which are designed to work well with other Boost libraries should
     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
     identically named header files in other libraries.&nbsp; The parent
     directory is added to the compiler's include search path.&nbsp; Then both

粤ICP备19079148号