diff --git a/Changelog.md b/Changelog.md index 34d9fcdd5..8d01df91e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -24,6 +24,9 @@ 1. Prevent -0 with out stream operator * [Pull request 206](https://github.com/ignitionrobotics/ign-math/pull/206) +1. Use and narrower includes, not + * [Pull request 287](https://github.com/ignitionrobotics/ign-math/pull/287) + ## Ignition Math 6.x ### Ignition Math 6.x.x diff --git a/include/ignition/math/Angle.hh b/include/ignition/math/Angle.hh index 1a3a0e169..7ce7d79b3 100644 --- a/include/ignition/math/Angle.hh +++ b/include/ignition/math/Angle.hh @@ -17,7 +17,8 @@ #ifndef IGNITION_MATH_ANGLE_HH_ #define IGNITION_MATH_ANGLE_HH_ -#include +#include +#include #include #include diff --git a/include/ignition/math/AxisAlignedBox.hh b/include/ignition/math/AxisAlignedBox.hh index d6ac5668e..81bc1c1a6 100644 --- a/include/ignition/math/AxisAlignedBox.hh +++ b/include/ignition/math/AxisAlignedBox.hh @@ -17,7 +17,7 @@ #ifndef IGNITION_MATH_AXISALIGNEDBOX_HH_ #define IGNITION_MATH_AXISALIGNEDBOX_HH_ -#include +#include #include #include #include diff --git a/include/ignition/math/Color.hh b/include/ignition/math/Color.hh index a32474561..6d8131407 100644 --- a/include/ignition/math/Color.hh +++ b/include/ignition/math/Color.hh @@ -17,8 +17,9 @@ #ifndef IGNITION_MATH_COLOR_HH_ #define IGNITION_MATH_COLOR_HH_ -#include #include +#include +#include #include #include diff --git a/include/ignition/math/Helpers.hh b/include/ignition/math/Helpers.hh index e0a4b23b8..525578685 100644 --- a/include/ignition/math/Helpers.hh +++ b/include/ignition/math/Helpers.hh @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/ignition/math/OrientedBox.hh b/include/ignition/math/OrientedBox.hh index 3fd53d1f7..aa333802a 100644 --- a/include/ignition/math/OrientedBox.hh +++ b/include/ignition/math/OrientedBox.hh @@ -17,7 +17,7 @@ #ifndef IGNITION_MATH_ORIENTEDBOX_HH_ #define IGNITION_MATH_ORIENTEDBOX_HH_ -#include +#include #include #include #include diff --git a/include/ignition/math/Temperature.hh b/include/ignition/math/Temperature.hh index a7f3ff71c..38db369c9 100644 --- a/include/ignition/math/Temperature.hh +++ b/include/ignition/math/Temperature.hh @@ -17,8 +17,9 @@ #ifndef IGNITION_MATH_TEMPERATURE_HH_ #define IGNITION_MATH_TEMPERATURE_HH_ -#include +#include #include +#include #include #include "ignition/math/Helpers.hh" diff --git a/include/ignition/math/Vector3.hh b/include/ignition/math/Vector3.hh index be05d43ba..eafa60307 100644 --- a/include/ignition/math/Vector3.hh +++ b/include/ignition/math/Vector3.hh @@ -17,10 +17,10 @@ #ifndef IGNITION_MATH_VECTOR3_HH_ #define IGNITION_MATH_VECTOR3_HH_ -#include -#include -#include #include +#include +#include +#include #include #include diff --git a/include/ignition/math/graph/Edge.hh b/include/ignition/math/graph/Edge.hh index db68db461..e9253655d 100644 --- a/include/ignition/math/graph/Edge.hh +++ b/include/ignition/math/graph/Edge.hh @@ -20,8 +20,8 @@ // uint64_t #include #include -#include #include +#include #include #include diff --git a/include/ignition/math/graph/Graph.hh b/include/ignition/math/graph/Graph.hh index 02e402371..cae3170e1 100644 --- a/include/ignition/math/graph/Graph.hh +++ b/include/ignition/math/graph/Graph.hh @@ -18,8 +18,8 @@ #define IGNITION_MATH_GRAPH_GRAPH_HH_ #include -#include #include +#include #include #include #include diff --git a/include/ignition/math/graph/Vertex.hh b/include/ignition/math/graph/Vertex.hh index b65b73b6d..38aaf78bf 100644 --- a/include/ignition/math/graph/Vertex.hh +++ b/include/ignition/math/graph/Vertex.hh @@ -20,8 +20,8 @@ // uint64_t #include #include -#include #include +#include #include #include diff --git a/src/SphericalCoordinates.cc b/src/SphericalCoordinates.cc index 9f22925b2..e43d6e725 100644 --- a/src/SphericalCoordinates.cc +++ b/src/SphericalCoordinates.cc @@ -14,6 +14,7 @@ * limitations under the License. * */ +#include #include #include "ignition/math/Matrix3.hh"