mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Attempt to fix the Linux Travis build
This commit is contained in:
parent
c4d903ff98
commit
99200d3bfb
@ -39,6 +39,13 @@ class maybe_t {
|
|||||||
// Construct a maybe_t from a value T.
|
// Construct a maybe_t from a value T.
|
||||||
/* implicit */ maybe_t(const T &v) : filled(true) { new (storage) T(v); }
|
/* implicit */ maybe_t(const T &v) : filled(true) { new (storage) T(v); }
|
||||||
|
|
||||||
|
// Copy constructor.
|
||||||
|
maybe_t(const maybe_t &v) {
|
||||||
|
if (v.filled) {
|
||||||
|
new (storage) T(v.value());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Move constructor.
|
// Move constructor.
|
||||||
/* implicit */ maybe_t(maybe_t &&v) {
|
/* implicit */ maybe_t(maybe_t &&v) {
|
||||||
if (v.filled) {
|
if (v.filled) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user