@@ -231,7 +231,6 @@ fdim BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q1,
231231 return quantity_type::from_value (fdim BOOST_PREVENT_MACRO_SUBSTITUTION (q1.value (),q2.value ()));
232232}
233233
234- #if 0
235234
236235template <class Unit1 ,class Unit2 ,class Unit3 ,class Y >
237236inline
@@ -256,7 +255,30 @@ fma BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit1,Y>& q1,
256255 return quantity_type::from_value (fma BOOST_PREVENT_MACRO_SUBSTITUTION (q1.value (),q2.value (),q3.value ()));
257256}
258257
259- #endif
258+ template <class Unit , class Y >
259+ inline
260+ BOOST_CONSTEXPR
261+ quantity<Unit,Y>
262+ fma BOOST_PREVENT_MACRO_SUBSTITUTION (const Y& q1,
263+ const quantity<Unit,Y>& q2,
264+ const quantity<Unit,Y>& q3)
265+ {
266+ using std::fma;
267+ return quantity<Unit,Y>::from_value (fma (q1,q2.value (),q3.value ()));
268+ }
269+
270+ template <class Unit , class Y >
271+ inline
272+ BOOST_CONSTEXPR
273+ quantity<Unit,Y>
274+ fma BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit, Y>& q1,
275+ const Y& q2,
276+ const quantity<Unit,Y>& q3)
277+ {
278+ using std::fma;
279+ return quantity<Unit,Y>::from_value (fma (q1.value (),q2,q3.value ()));
280+ }
281+
260282
261283template <class Unit ,class Y >
262284inline
0 commit comments