[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:
parent
f55672ef01
commit
9944fef40d
|
@ -15,6 +15,9 @@ DOXYGEN = OWLPS_VERSION=$(OWLPS_VERSION) doxygen >/dev/null
|
||||||
# Flags for the tests
|
# Flags for the tests
|
||||||
TESTSCXXFLAGS = -I$(TESTS_DIR) -I$(SRC_DIR) -I.
|
TESTSCXXFLAGS = -I$(TESTS_DIR) -I$(SRC_DIR) -I.
|
||||||
|
|
||||||
|
# Compiler flags
|
||||||
|
CXXFLAGS += -std=c++11
|
||||||
|
|
||||||
## Additional libraries ##
|
## Additional libraries ##
|
||||||
|
|
||||||
LDFLAGS += -lstdc++ -lm -lboost_program_options -pthread -lowlps
|
LDFLAGS += -lstdc++ -lm -lboost_program_options -pthread -lowlps
|
||||||
|
|
|
@ -59,8 +59,8 @@ protected:
|
||||||
const Point3D stop ;
|
const Point3D stop ;
|
||||||
float step ;
|
float step ;
|
||||||
|
|
||||||
static const float MINMAX_DEFAULT_STEP = 0.5 ;
|
static constexpr float MINMAX_DEFAULT_STEP = 0.5 ;
|
||||||
static const float INFINITE = 1000000 ;
|
static constexpr float INFINITE = 1000000 ;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MinMax(const Point3D &_start,
|
MinMax(const Point3D &_start,
|
||||||
|
|
Loading…
Reference in New Issue