Skip to content

Commit

Permalink
Include initializer_list header only when c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Nov 8, 2024
1 parent f65fb95 commit a0bb711
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 19 deletions.
6 changes: 5 additions & 1 deletion modules/core/src/math/matrix/vpColVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,18 @@
#include <string.h> // for memcpy
#include <algorithm> // for copy, min
#include <cmath> // for sqrt, fabs
#include <initializer_list> // for initializer_list
#include <iostream> // for cout
#include <limits> // for numeric_limits
#include <sstream> // for basic_ostream, char_traits
#include <string> // for basic_string, allocator
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for VISP_HAVE_SIMDLIB, VISP_...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpColVector.h> // for vpColVector, operator*
#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpMath.h> // for vpMath
Expand Down
6 changes: 5 additions & 1 deletion modules/core/src/math/matrix/vpMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@
#include <string.h> // for memcpy, size_t
#include <algorithm> // for min
#include <cmath> // for fabs, sqrt
#include <initializer_list> // for initializer_list
#include <iostream> // for cerr
#include <limits> // for numeric_limits
#include <sstream> // for basic_ostream, operator<<, basic...
#include <string> // for basic_string, char_traits, alloc...
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for VISP_HAVE_GSL, VISP_HAVE_LAPACK

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpColVector.h> // for vpColVector
#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpMath.h> // for vpMath
Expand Down
6 changes: 5 additions & 1 deletion modules/core/src/math/matrix/vpMatrix_operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@
#include <string.h> // for memcpy
#include <algorithm> // for copy, fill
#include <cmath> // for fabs
#include <initializer_list> // for initializer_list
#include <limits> // for numeric_limits

#include <visp3/core/vpConfig.h> // for VISP_HAVE_GSL, VISP_HA...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpMatrix.h> // for vpMatrix, operator*
#include <visp3/core/vpArray2D.h> // for vpArray2D
#include <visp3/core/vpColVector.h> // for vpColVector
Expand Down
6 changes: 5 additions & 1 deletion modules/core/src/math/matrix/vpRowVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,18 @@
#include <string.h> // for memcpy
#include <algorithm> // for copy, min
#include <cmath> // for sqrt, fabs
#include <initializer_list> // for initializer_list
#include <iostream> // for cout
#include <limits> // for numeric_limits
#include <sstream> // for basic_ostream, char_traits, oper...
#include <string> // for basic_string, allocator, operator<<
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for VISP_CXX_STANDARD, VISP_CXX_STAN...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpArray2D.h> // for vpArray2D
#include <visp3/core/vpColVector.h> // for vpColVector
#include <visp3/core/vpException.h> // for vpException
Expand Down
6 changes: 5 additions & 1 deletion modules/core/src/math/transformation/vpHomogeneousMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,18 @@
#include <algorithm> // for copy
#include <cmath> // for isnan, fabs
#include <fstream> // for basic_ifstream, basic_of...
#include <initializer_list> // for initializer_list
#include <iostream> // for cout
#include <limits> // for numeric_limits
#include <map> // for operator==, operator!=
#include <string> // for basic_string, string
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpHomogeneousMatrix.h> // for vpHomogeneousMatrix
#include <visp3/core/vpMatrix.h> // for vpMatrix
Expand Down
8 changes: 6 additions & 2 deletions modules/core/src/math/transformation/vpQuaternionVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,19 @@
#include <algorithm> // for copy
#include <cassert> // for assert
#include <cmath> // for sin, acos, cos, sqrt
#include <initializer_list> // for initializer_list
#include <iostream> // for char_traits, basic_ostream
#include <limits> // for numeric_limits
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpMath.h> // for vpMath
#include <visp3/core/vpQuaternionVector.h> // for vpQuaternionVector
#include <visp3/core/vpColVector.h> // for vpColVector
#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END...
#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpRotationMatrix.h> // for vpRotationMatrix
#include <visp3/core/vpRotationVector.h> // for vpRotationVector
Expand Down
9 changes: 7 additions & 2 deletions modules/core/src/math/transformation/vpRotationMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,22 @@
#include <math.h> // for cos, sin, sqrt, fabs
#include <stddef.h> // for size_t
#include <algorithm> // for copy
#include <initializer_list> // for initializer_list
#include <iostream> // for char_traits, basic_ostream
#include <vector> // for vector


#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpMath.h> // for vpMath
#include <visp3/core/vpMatrix.h> // for vpMatrix
#include <visp3/core/vpRotationMatrix.h> // for vpRotationMatrix, operator*
#include <visp3/core/vpArray2D.h> // for vpArray2D
#include <visp3/core/vpColVector.h> // for vpColVector
#include <visp3/core/vpConfig.h> // for VISP_CXX_STANDARD, VISP_...
#include <visp3/core/vpHomogeneousMatrix.h> // for vpHomogeneousMatrix
#include <visp3/core/vpQuaternionVector.h> // for vpQuaternionVector
#include <visp3/core/vpRotationVector.h> // for vpRotationVector
Expand Down
8 changes: 6 additions & 2 deletions modules/core/src/math/transformation/vpRxyzVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@

#include <math.h> // for atan2, fabs, cos, sin
#include <algorithm> // for copy
#include <initializer_list> // for initializer_list
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpRxyzVector.h> // for vpRxyzVector
#include <visp3/core/vpArray2D.h> // for vpArray2D
#include <visp3/core/vpColVector.h> // for vpColVector
#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END_V...
#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpRotationMatrix.h> // for vpRotationMatrix
#include <visp3/core/vpRotationVector.h> // for vpRotationVector
Expand Down
8 changes: 6 additions & 2 deletions modules/core/src/math/transformation/vpRzyxVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@

#include <math.h> // for atan2, fabs, cos, sin
#include <algorithm> // for copy
#include <initializer_list> // for initializer_list
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpRzyxVector.h> // for vpRzyxVector
#include <visp3/core/vpArray2D.h> // for vpArray2D
#include <visp3/core/vpColVector.h> // for vpColVector
#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END_V...
#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpRotationMatrix.h> // for vpRotationMatrix
#include <visp3/core/vpRotationVector.h> // for vpRotationVector
Expand Down
8 changes: 6 additions & 2 deletions modules/core/src/math/transformation/vpRzyzVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@

#include <math.h> // for atan2, fabs, cos, sin
#include <algorithm> // for copy
#include <initializer_list> // for initializer_list
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpArray2D.h> // for vpArray2D
#include <visp3/core/vpColVector.h> // for vpColVector
#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END_V...
#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpRotationMatrix.h> // for vpRotationMatrix
#include <visp3/core/vpRotationVector.h> // for vpRotationVector
Expand Down
8 changes: 6 additions & 2 deletions modules/core/src/math/transformation/vpThetaUVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,19 @@
*/

#include <algorithm> // for copy
#include <initializer_list> // for initializer_list
#include <vector> // for vector
#include <cmath> // for sin, sqrt, cos, fabs, acos
#include <limits> // for numeric_limits

#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpThetaUVector.h> // for vpThetaUVector
#include <visp3/core/vpArray2D.h> // for vpArray2D
#include <visp3/core/vpColVector.h> // for vpColVector, operator*
#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE
#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpHomogeneousMatrix.h> // for vpHomogeneousMatrix
#include <visp3/core/vpMath.h> // for vpMath
Expand Down
8 changes: 6 additions & 2 deletions modules/core/src/math/transformation/vpTranslationVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@
#include <math.h> // for sqrt
#include <string.h> // for memcpy, size_t
#include <algorithm> // for copy
#include <initializer_list> // for initializer_list
#include <vector> // for vector

#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE, END...

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#include <initializer_list> // for initializer_list
#endif

#include <visp3/core/vpTranslationVector.h> // for vpTranslationVector
#include <visp3/core/vpArray2D.h> // for vpArray2D
#include <visp3/core/vpColVector.h> // for vpColVector
#include <visp3/core/vpConfig.h> // for BEGIN_VISP_NAMESPACE
#include <visp3/core/vpException.h> // for vpException
#include <visp3/core/vpHomogeneousMatrix.h> // for vpHomogeneousMatrix
#include <visp3/core/vpMatrix.h> // for vpMatrix
Expand Down

0 comments on commit a0bb711

Please sign in to comment.