diff --git a/cppguide.xml b/cppguide.xml index c61416f..3df79ea 100644 --- a/cppguide.xml +++ b/cppguide.xml @@ -4,7 +4,7 @@
-Revision 3.154 +Revision 3.161
@@ -204,6 +204,16 @@ Tashana Landray include several header files. +Foo
in your source file, you
+ should bring in a definition for Foo
yourself,
+ either via an #include or via a forward declaration. Do not
+ depend on the symbol being brought in transitively via headers
+ not directly included. One exception is if Foo
+ is used in myfile.cc
, it's ok to #include (or
+ forward-declare) Foo
in myfile.h
,
+ instead of myfile.cc
.
+