Skip to content

Commit

Permalink
[TUTO][FIX] Fix C++98 related compilation errors + removed unused inc…
Browse files Browse the repository at this point in the history
…ludes
  • Loading branch information
LAGNEAU Romain committed Sep 11, 2024
1 parent 68b5953 commit d225943
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

// ViSP includes
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpCannyEdgeDetection.h>
#include <visp3/core/vpException.h>
#include <visp3/core/vpMouseButton.h>
#include <visp3/core/vpTime.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
//! \example tutorial-pf-curve-fitting-lms.cpp

#include <visp3/core/vpConfig.h>
#include <visp3/core/vpCannyEdgeDetection.h>
#include <visp3/core/vpException.h>
#include <visp3/core/vpMouseButton.h>
#include <visp3/core/vpTime.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
//! \example tutorial-pf-curve-fitting-pf.cpp

#include <visp3/core/vpConfig.h>
#include <visp3/core/vpCannyEdgeDetection.h>
#include <visp3/core/vpException.h>
#include <visp3/core/vpMouseButton.h>
#include <visp3/core/vpTime.h>
Expand Down
2 changes: 2 additions & 0 deletions tutorial/particle-filter-curve-fitting/vpTutoCommonData.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <visp3/gui/vpDisplayFactory.h>
#include <visp3/io/vpVideoReader.h>

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace tutorial
{
Expand Down Expand Up @@ -340,3 +341,4 @@ typedef struct vpTutoCommonData
}
#endif
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include "vpTutoMeanSquareFitting.h"

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace tutorial
{
Expand Down Expand Up @@ -104,3 +105,6 @@ double vpTutoMeanSquareFitting::model(const float &u)
}
}
#endif
#else
void dummy_vpTutoMeanSquareFitting() { }
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

#include "vpTutoParabolaModel.h"

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace tutorial
{
Expand Down Expand Up @@ -160,3 +161,4 @@ class vpTutoMeanSquareFitting
}
#endif
#endif
#endif
2 changes: 2 additions & 0 deletions tutorial/particle-filter-curve-fitting/vpTutoParabolaModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <visp3/core/vpColVector.h>
#include <visp3/core/vpMatrix.h>

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace tutorial
{
Expand Down Expand Up @@ -173,3 +174,4 @@ class vpTutoParabolaModel
}
#endif
#endif
#endif
4 changes: 4 additions & 0 deletions tutorial/particle-filter-curve-fitting/vpTutoSegmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include <visp3/core/vpGaussRand.h>

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace tutorial
{
Expand Down Expand Up @@ -148,3 +149,6 @@ std::vector< vpImagePoint > addSaltAndPepperNoise(const std::vector< vpImagePoin
}
}
#endif
#else
void dummy_vpTutoSegmentation() { }
#endif
2 changes: 2 additions & 0 deletions tutorial/particle-filter-curve-fitting/vpTutoSegmentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

#include "vpTutoCommonData.h"

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace tutorial
{
Expand Down Expand Up @@ -70,3 +71,4 @@ std::vector< VISP_NAMESPACE_ADDRESSING vpImagePoint > addSaltAndPepperNoise(cons
}
#endif
#endif
#endif

0 comments on commit d225943

Please sign in to comment.