Skip to content

Commit

Permalink
work with gcc 7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 6, 2023
1 parent 9e9a727 commit 52b86c4
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions dlib/expected.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ namespace dlib
template <
class T,
class E,
bool = (std::is_trivially_move_constructible<T>::value && std::is_trivially_move_constructible<E>::value)
bool = (disjunction<std::is_void<T>, std::is_trivially_move_constructible<T>>::value && std::is_trivially_move_constructible<E>::value)
>
struct expected_move : expected_copy<T, E>
{
Expand Down Expand Up @@ -505,11 +505,12 @@ namespace dlib
template <
class T,
class E,
bool = std::is_trivially_copy_assignable<T>::value &&
std::is_trivially_copy_constructible<T>::value &&
std::is_trivially_destructible<T>::value &&
std::is_trivially_copy_assignable<E>::value &&
std::is_trivially_copy_constructible<E>::value &&
bool = disjunction<std::is_void<T>,
conjunction<std::is_trivially_copy_assignable<T>,
std::is_trivially_copy_constructible<T>,
std::is_trivially_destructible<T>>>::value &&
std::is_trivially_copy_assignable<E>::value &&
std::is_trivially_copy_constructible<E>::value &&
std::is_trivially_destructible<E>::value
>
struct expected_copy_assign : expected_move<T, E>
Expand Down Expand Up @@ -545,11 +546,12 @@ namespace dlib
template <
class T,
class E,
bool = std::is_trivially_move_assignable<T>::value &&
std::is_trivially_move_constructible<T>::value &&
std::is_trivially_destructible<T>::value &&
std::is_trivially_move_assignable<E>::value &&
std::is_trivially_move_constructible<E>::value &&
bool = disjunction<std::is_void<T>,
conjunction<std::is_trivially_move_assignable<T>,
std::is_trivially_move_constructible<T>,
std::is_trivially_destructible<T>>>::value &&
std::is_trivially_move_assignable<E>::value &&
std::is_trivially_move_constructible<E>::value &&
std::is_trivially_destructible<E>::value
>
struct expected_move_assign : expected_copy_assign<T,E>
Expand Down

0 comments on commit 52b86c4

Please sign in to comment.