Ticket #10531: boost_polygon.patch

File boost_polygon.patch, 739 bytes (added by fiesh@…, 8 years ago)

Patch to work around the GCC bug

  • boost/boost/polygon/point_data.hpp

     boost/boost/polygon/point_data.hpp | 9 ++++++++-
     1 file changed, 8 insertions(+), 1 deletion(-)
    
    diff --git a/boost/boost/polygon/point_data.hpp b/boost/boost/polygon/point_data.hpp
    index 8d5a59f..a2852c4 100644
    a b class point_data {  
    4545    return *this;
    4646  }
    4747
     48#ifdef __GNUC__
    4849  template <typename PointType>
    49   point_data(const PointType& that) {
     50  explicit point_data(const PointType& that) {
    5051    *this = that;
    5152  }
     53#else // __GNUC__
     54  template <typename PointType>
     55  point_data(const PointType& that) {
     56        *this = that;
     57  }
     58#endif // __GNUC__
    5259
    5360  template <typename PointType>
    5461  point_data& operator=(const PointType& that) {