diff options
Diffstat (limited to 'boost/polygon/point_data.hpp')
-rw-r--r-- | boost/polygon/point_data.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/boost/polygon/point_data.hpp b/boost/polygon/point_data.hpp index 8224657b48..deda14d5d4 100644 --- a/boost/polygon/point_data.hpp +++ b/boost/polygon/point_data.hpp @@ -45,18 +45,18 @@ class point_data { return *this; } -#ifdef __GNUC__ - // "explicit" to work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63356 +#if defined(__GNUC__) && __GNUC__ < 6 + // "explicit" to work around a bug in GCC < 6: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63356 template <typename PointType> explicit point_data(const PointType& that) { *this = that; } -#else // __GNUC__ +#else // __GNUC__ < 6 template <typename PointType> point_data(const PointType& that) { *this = that; } -#endif // __GNUC__ +#endif // __GNUC__ < 6 template <typename PointType> point_data& operator=(const PointType& that) { |