Browse Source

Type requirements of unique_resource of move assignment operator fixed.

main
offa 7 years ago
parent
commit
bfdcd3c0a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/unique_resource.h

+ 1
- 1
include/unique_resource.h View File

@@ -238,7 +238,7 @@ namespace sr
template<class RR = R, class DD = D,
std::enable_if_t<(std::is_nothrow_move_assignable<RR>::value
|| std::is_nothrow_copy_assignable<RR>::value)
&& (std::is_nothrow_copy_assignable<DD>::value
&& (std::is_nothrow_move_assignable<DD>::value
|| std::is_nothrow_copy_assignable<DD>::value), int> = 0
>
unique_resource& operator=(unique_resource&& other)

Loading…
Cancel
Save