@@ -15,7 +15,7 @@ BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS - the function-level qualifiers for the
1515BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE - the transaction_safe specifier for
1616 the current include (`transaction_safe` or nothing)
1717
18- BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE - `std::true_type ` or `std::false_type `,
18+ BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE - `true ` or `false `,
1919 tied on whether BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE is `transaction_safe`
2020
2121BOOST_CLBL_TRTS_TRANSACTION_SAFE_SPECIFIER - `transaction_safe` when
@@ -24,7 +24,7 @@ BOOST_CLBL_TRTS_TRANSACTION_SAFE_SPECIFIER - `transaction_safe` when
2424BOOST_CLBL_TRTS_NOEXCEPT_SPEC - the noexcept specifier for
2525 the current include (`noexcept` or nothing)
2626
27- BOOST_CLBL_TRTS_IS_NOEXCEPT - `std::true_type ` or `std::false_type `,
27+ BOOST_CLBL_TRTS_IS_NOEXCEPT - `true ` or `false `,
2828 tied on whether BOOST_CLBL_TRTS_NOEXCEPT_SPEC is `noexcept`
2929
3030BOOST_CLBL_TRTS_NOEXCEPT_SPECIFIER - `noexcept` if
@@ -67,7 +67,7 @@ struct function<Return(Args...)
6767 BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE
6868 BOOST_CLBL_TRTS_NOEXCEPT_SPEC;
6969
70- using is_noexcept = BOOST_CLBL_TRTS_IS_NOEXCEPT;
70+ static constexpr bool is_noexcept = BOOST_CLBL_TRTS_IS_NOEXCEPT;
7171
7272 using remove_noexcept = Return(Args...)
7373 BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS
@@ -78,7 +78,7 @@ struct function<Return(Args...)
7878 BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE
7979 BOOST_CLBL_TRTS_NOEXCEPT_SPECIFIER;
8080
81- using is_transaction_safe = BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE;
81+ static constexpr bool is_transaction_safe = BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE;
8282
8383 using remove_transaction_safe = Return(Args...)
8484 BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS
@@ -92,8 +92,8 @@ struct function<Return(Args...)
9292 using qualifiers = default_callable_traits<dummy BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS>;
9393
9494 template <qualifier_flags Flags>
95- using set_qualifiers = set_function_qualifiers<Flags, is_transaction_safe::value ,
96- is_noexcept::value , Return, Args...>;
95+ using set_qualifiers = set_function_qualifiers<Flags, is_transaction_safe,
96+ is_noexcept, Return, Args...>;
9797
9898 #ifdef BOOST_CLBL_TRTS_DISABLE_ABOMINABLE_FUNCTIONS
9999
@@ -140,8 +140,6 @@ struct function<Return(Args...)
140140
141141 template <template <class ...> class Container >
142142 using expand_args = Container<Args...>;
143-
144- using is_member_pointer = std::false_type;
145143};
146144
147145
@@ -154,7 +152,7 @@ struct function<Return (Args..., ...)
154152
155153 static constexpr bool value = true ;
156154
157- using has_varargs = std::true_type ;
155+ static constexpr bool has_varargs = true ;
158156 using traits = function;
159157 using return_type = Return;
160158 using arg_types = std::tuple<Args...>;
@@ -178,7 +176,7 @@ struct function<Return (Args..., ...)
178176
179177 using add_varargs = type;
180178
181- using is_noexcept = BOOST_CLBL_TRTS_IS_NOEXCEPT;
179+ static constexpr bool is_noexcept = BOOST_CLBL_TRTS_IS_NOEXCEPT;
182180
183181 using remove_noexcept = Return(Args..., ...)
184182 BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS
@@ -189,7 +187,7 @@ struct function<Return (Args..., ...)
189187 BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE
190188 BOOST_CLBL_TRTS_NOEXCEPT_SPECIFIER;
191189
192- using is_transaction_safe = BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE;
190+ static constexpr bool is_transaction_safe = BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE;
193191
194192 using remove_transaction_safe = Return(Args..., ...)
195193 BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS
@@ -203,8 +201,8 @@ struct function<Return (Args..., ...)
203201 using qualifiers = default_callable_traits<dummy BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS>;
204202
205203 template <qualifier_flags Flags>
206- using set_qualifiers = set_varargs_function_qualifiers<Flags, is_transaction_safe::value ,
207- is_noexcept::value , Return, Args...>;
204+ using set_qualifiers = set_varargs_function_qualifiers<Flags, is_transaction_safe,
205+ is_noexcept, Return, Args...>;
208206
209207 #ifdef BOOST_CLBL_TRTS_DISABLE_ABOMINABLE_FUNCTIONS
210208
@@ -255,6 +253,4 @@ struct function<Return (Args..., ...)
255253
256254 template <template <class ...> class Container >
257255 using expand_args = Container<Args...>;
258-
259- using is_member_pointer = std::false_type;
260256};
0 commit comments