[Positioner] Switch to C++11

This is a very basic switch, we don't use any of the C++11 features yet.
This commit is contained in:
Matteo Cypriani 2013-05-16 17:42:37 -04:00
parent f55672ef01
commit 9944fef40d
2 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,9 @@ DOXYGEN = OWLPS_VERSION=$(OWLPS_VERSION) doxygen >/dev/null
# Flags for the tests
TESTSCXXFLAGS = -I$(TESTS_DIR) -I$(SRC_DIR) -I.
# Compiler flags
CXXFLAGS += -std=c++11
## Additional libraries ##
LDFLAGS += -lstdc++ -lm -lboost_program_options -pthread -lowlps

View File

@ -59,8 +59,8 @@ protected:
const Point3D stop ;
float step ;
static const float MINMAX_DEFAULT_STEP = 0.5 ;
static const float INFINITE = 1000000 ;
static constexpr float MINMAX_DEFAULT_STEP = 0.5 ;
static constexpr float INFINITE = 1000000 ;
public:
MinMax(const Point3D &_start,