Changeset 80:b720f2f65019 in rrlib_geometry


Ignore:
Timestamp:
10.11.2016 17:56:49 (3 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
14.08
Phase:
public
Message:

Replaces use of boost::enable_if_c by std::enable_if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.h

    r60 r80  
    4242#include <cmath> 
    4343 
    44 #include <boost/utility/enable_if.hpp> 
    45  
    4644//---------------------------------------------------------------------- 
    4745// Internal includes with "" 
     
    6361 
    6462template <typename TElement> 
    65 inline const math::tAngleRad GetSlope(const tLineSegment<2, TElement> &line_segment) 
     63inline math::tAngleRad GetSlope(const tLineSegment<2, TElement> &line_segment) 
    6664{ 
    6765  return std::atan2(line_segment.End().Y() - line_segment.Begin().Y(), line_segment.End().X() - line_segment.Begin().X()); 
    6866} 
    6967 
    70 template <size_t Tdimension, typename TElement, unsigned int Tdegree> 
    71 inline const typename boost::enable_if_c < (Tdimension <= 3), double >::type GetCurvature(const tBezierCurve<Tdimension, TElement, Tdegree> &curve, TElement parameter) 
     68template < size_t Tdimension, typename TElement, unsigned int Tdegree, typename = typename std::enable_if<Tdimension <= 3, int>::type> 
     69inline double GetCurvature(const tBezierCurve<Tdimension, TElement, Tdegree> &curve, TElement parameter) 
    7270{ 
    7371  typename tBezierCurve<Tdimension, TElement, Tdegree>::tDerivative first_derivative(curve.GetDerivative()); 
Note: See TracChangeset for help on using the changeset viewer.