[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8c1f9dd 3/4: Move and improve a comment
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 8c1f9dd 3/4: Move and improve a comment |
Date: |
Fri, 19 Mar 2021 08:04:31 -0400 (EDT) |
branch: master
commit 8c1f9dd2433d8190a1a5be3ed2ab3b5405c59dcd
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Move and improve a comment
---
tools/pete-2.1.1/et_vector.hpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/pete-2.1.1/et_vector.hpp b/tools/pete-2.1.1/et_vector.hpp
index 4f88acf..443ce22 100644
--- a/tools/pete-2.1.1/et_vector.hpp
+++ b/tools/pete-2.1.1/et_vector.hpp
@@ -45,12 +45,13 @@
#include "config.hpp"
#endif // 0
-// These headers must be included before "et_vector_operators.hpp"
-// because the latter doesn't include them.
#include "PETE/PETE.h"
#include <vector>
+// Include "et_vector_operators.hpp" last because it's generated
+// automatically and doesn't include all the headers it needs.
+
// gcc's '-Weffc++' flags user-defined boolean AND and OR operators
// because they cannot implement short-circuit evaluation. Although
// Meyers's "Never overload &&, ||, or ," is a generally sound rule