mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Attempt to fix the Linux Travis build
This commit is contained in:
parent
c4d903ff98
commit
99200d3bfb
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue