From f1b73602c1f256a3aad2cc8a154e22be26500740 Mon Sep 17 00:00:00 2001 From: hsutter Date: Thu, 8 Aug 2019 11:46:55 -0700 Subject: [PATCH] Closes #1470 --- CppCoreGuidelines.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index acf3b11..7c879ac 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -19045,6 +19045,10 @@ Avoid clients of a header having to manage that header's dependencies. Failing to follow this results in difficult to diagnose errors for clients of a header. +##### Note + +A header should include all its dependencies. Be careful about using relative paths because C++ implementations diverge on their meaning. + ##### Enforcement A test should verify that the header file itself compiles or that a cpp file which only includes the header file compiles.