mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Fix build on CentOS 7
This fixes a regression in 9d303a74e
(maybe_t: make maybe_t<T> trivially
copyable if T is, 2022-10-26). I subscribed to the launchpad repo now -.-
This commit is contained in:
parent
efa2cf0cb6
commit
0305c842e6
1 changed files with 5 additions and 1 deletions
|
@ -147,10 +147,14 @@ inline constexpr none_t none() { return none_t::none; }
|
|||
// This is a value-type class that stores a value of T in aligned storage.
|
||||
template <typename T>
|
||||
class maybe_t : private maybe_detail::conditionally_copyable_t<T> {
|
||||
#if __GNUG__ && __GNUC__ < 5
|
||||
using maybe_impl_t = maybe_detail::maybe_impl_not_trivially_copyable_t<T>;
|
||||
#else
|
||||
using maybe_impl_t =
|
||||
typename std::conditional<std::is_trivially_copyable<T>::value,
|
||||
maybe_detail::maybe_impl_trivially_copyable_t<T>,
|
||||
maybe_detail::maybe_impl_not_trivially_copyable_t<T>>::type;
|
||||
maybe_detail::maybe_impl_not_trivially_copyable_t<T> >::type;
|
||||
#endif
|
||||
maybe_impl_t impl_;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue