Order of parameters for std::binary_function.

This commit is contained in:
Marc Glisse 2014-05-02 16:39:14 +02:00
parent dda84d067b
commit 1b31e34cbe
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ template<class R_> struct Point_of_sphere : private Store_kernel<R_> {
typedef Point result_type;
typedef Sphere first_argument_type;
typedef int second_argument_type;
struct Trans : std::binary_function<FT,FT,int> {
struct Trans : std::binary_function<FT,int,FT> {
FT const& r_; int idx; bool sgn;
Trans (int n, FT const& r, bool b) : r_(r), idx(n), sgn(b) {}
FT operator()(FT const&x, int i)const{

View File

@ -796,7 +796,7 @@ template<class R_> struct Midpoint : private Store_kernel<R_> {
typedef Point first_argument_type;
typedef Point second_argument_type;
// There is a division, but it will be cast to RT afterwards anyway, so maybe we could use RT.
struct Average : std::binary_function<FT,FT,RT> {
struct Average : std::binary_function<FT,RT,FT> {
FT operator()(FT const&a, RT const&b)const{
return (a+b)/2;
}