1 parent 772b274 commit af4c194Copy full SHA for af4c194
1 file changed
include/objc-helpers/BlockUtil.h
@@ -204,7 +204,7 @@ namespace BlockUtil
204
}
205
206
BlockWithCallable & operator=(const BlockWithCallable & src)
207
- requires(std::is_copy_constructible_v<Callable>) {
+ requires(std::is_nothrow_copy_constructible_v<Callable>) {
208
if (this != &src) {
209
disposeBlock(this);
210
reallyCopyBlock(this, &src);
@@ -213,7 +213,7 @@ namespace BlockUtil
213
214
215
BlockWithCallable & operator=(BlockWithCallable && src)
216
- requires(std::is_move_constructible_v<Callable>) {
+ requires(std::is_nothrow_move_constructible_v<Callable>) {
217
218
219
moveBlock(this, &src);
0 commit comments