Skip to content

Commit 289bd2e

Browse files
committed
Fix new clang error with missing parenthesis for requires clause
1 parent 6ede201 commit 289bd2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/boost/decimal/detail/concepts.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ concept fast_decimal_floating_point_type = boost::decimal::detail::is_fast_type_
267267
#define BOOST_DECIMAL_OUTPUT_ITER(I, T) boost::decimal::detail::concepts::output_iterator<I, T>
268268
#define BOOST_DECIMAL_REQUIRES_ITER(X) requires X
269269

270-
#define BOOST_DECIMAL_REQUIRES(X, T) -> T requires X<T>
271-
#define BOOST_DECIMAL_REQUIRES_TWO(X1, T1, X2, T2) -> detail::promote_args_t<T1, T2> requires X1<T1> && X2<T2>
272-
#define BOOST_DECIMAL_REQUIRES_TWO_RETURN(X1, T1, X2, T2, ReturnType) -> ReturnType requires X1<T1> && X2<T2>
273-
#define BOOST_DECIMAL_REQUIRES_THREE(X1, T1, X2, T2, X3, T3) -> detail::promote_args_t<T1, T2, T3> requires X1<T1> && X2<T2> && X3<T3>
274-
#define BOOST_DECIMAL_REQUIRES_RETURN(X, T, ReturnType) -> ReturnType requires X<T>
270+
#define BOOST_DECIMAL_REQUIRES(X, T) -> T requires (X<T>)
271+
#define BOOST_DECIMAL_REQUIRES_TWO(X1, T1, X2, T2) -> detail::promote_args_t<T1, T2> requires (X1<T1> && X2<T2>)
272+
#define BOOST_DECIMAL_REQUIRES_TWO_RETURN(X1, T1, X2, T2, ReturnType) -> ReturnType requires (X1<T1> && X2<T2>)
273+
#define BOOST_DECIMAL_REQUIRES_THREE(X1, T1, X2, T2, X3, T3) -> detail::promote_args_t<T1, T2, T3> requires (X1<T1> && X2<T2> && X3<T3>)
274+
#define BOOST_DECIMAL_REQUIRES_RETURN(X, T, ReturnType) -> ReturnType requires (X<T>)
275275

276276
#ifdef BOOST_DECIMAL_EXEC_COMPATIBLE
277277
#include <execution>

0 commit comments

Comments
 (0)