mirror of
https://github.com/boostorg/polygon.git
synced 2026-02-01 20:52:11 +00:00
work around GCC bug, see https://svn.boost.org/trac/boost/ticket/10531
This commit is contained in:
@@ -45,10 +45,18 @@ class point_data {
|
||||
return *this;
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
// "explicit" to work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63356
|
||||
template <typename PointType>
|
||||
explicit point_data(const PointType& that) {
|
||||
*this = that;
|
||||
}
|
||||
#else // __GNUC__
|
||||
template <typename PointType>
|
||||
point_data(const PointType& that) {
|
||||
*this = that;
|
||||
}
|
||||
#endif // __GNUC__
|
||||
|
||||
template <typename PointType>
|
||||
point_data& operator=(const PointType& that) {
|
||||
|
||||
Reference in New Issue
Block a user