@@ -79,42 +79,42 @@ BOOST_DECIMAL_EXPORT class gcc_decimal32 final
79
79
80
80
// 3.2.8 Binary arithmetic operators.
81
81
template <typename Integral>
82
- friend return_type operator +(gcc_decimal32 lhs, Integral rhs)
82
+ friend auto operator +(gcc_decimal32 lhs, Integral rhs)
83
83
BOOST_DECIMAL_REQUIRES_RETURN (detail::is_integral_v, Integral, return_type)
84
84
{ return lhs.underlying () + rhs; }
85
85
86
86
template <typename Integral>
87
- friend return_type operator +(Integral lhs, gcc_decimal32 rhs)
87
+ friend auto operator +(Integral lhs, gcc_decimal32 rhs)
88
88
BOOST_DECIMAL_REQUIRES_RETURN (detail::is_integral_v, Integral, return_type)
89
89
{ return lhs + rhs.underlying (); }
90
90
91
91
template <typename Integral>
92
- friend return_type operator -(gcc_decimal32 lhs, Integral rhs)
92
+ friend auto operator -(gcc_decimal32 lhs, Integral rhs)
93
93
BOOST_DECIMAL_REQUIRES_RETURN (detail::is_integral_v, Integral, return_type)
94
94
{ return lhs.underlying () - rhs; }
95
95
96
96
template <typename Integral>
97
- friend return_type operator -(Integral lhs, gcc_decimal32 rhs)
97
+ friend auto operator -(Integral lhs, gcc_decimal32 rhs)
98
98
BOOST_DECIMAL_REQUIRES_RETURN (detail::is_integral_v, Integral, return_type)
99
99
{ return lhs - rhs.underlying (); }
100
100
101
101
template <typename Integral>
102
- friend return_type operator *(gcc_decimal32 lhs, Integral rhs)
102
+ friend auto operator *(gcc_decimal32 lhs, Integral rhs)
103
103
BOOST_DECIMAL_REQUIRES_RETURN (detail::is_integral_v, Integral, return_type)
104
104
{ return lhs.underlying () * rhs; }
105
105
106
106
template <typename Integral>
107
- friend return_type operator *(Integral lhs, gcc_decimal32 rhs)
107
+ friend auto operator *(Integral lhs, gcc_decimal32 rhs)
108
108
BOOST_DECIMAL_REQUIRES_RETURN (detail::is_integral_v, Integral, return_type)
109
109
{ return lhs * rhs.underlying (); }
110
110
111
111
template <typename Integral>
112
- friend return_type operator /(gcc_decimal32 lhs, Integral rhs)
112
+ friend auto operator /(gcc_decimal32 lhs, Integral rhs)
113
113
BOOST_DECIMAL_REQUIRES_RETURN (detail::is_integral_v, Integral, return_type)
114
114
{ return lhs.underlying () / rhs; }
115
115
116
116
template <typename Integral>
117
- friend return_type operator /(Integral lhs, gcc_decimal32 rhs)
117
+ friend auto operator /(Integral lhs, gcc_decimal32 rhs)
118
118
BOOST_DECIMAL_REQUIRES_RETURN (detail::is_integral_v, Integral, return_type)
119
119
{ return lhs / rhs.underlying (); }
120
120
};
0 commit comments