BAffineTransform: C++11 compatibility fix

inline const floats are a gcc extension. It is possible to do it in a
standard way in C++11 using constexpr, but then gcc will reject the
previously accepted nonstandard syntax.
This commit is contained in:
Adrien Destugues 2014-02-07 14:38:33 +01:00
parent 32cae72412
commit b8c44b4c3f
1 changed files with 4 additions and 0 deletions

View File

@ -33,7 +33,11 @@
class BAffineTransform : public BFlattenable {
public:
#if __cplusplus < 201103L
static const double kDefaultEpsilon = 1e-14;
#else
static constexpr double kDefaultEpsilon = 1e-14;
#endif
public:
BAffineTransform();