aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/derivations.hh
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2020-03-22 23:43:07 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-03-25 16:12:14 -0400
commite433d4af4cf78c88dc0cb3e8139e835470b72fd3 (patch)
treeff8d812a87c86f0418394e87a7fd4d17f2886929 /src/libstore/derivations.hh
parenteb1911e277bfcc1b161cb996205ae1696f496099 (diff)
Extend Rust FFI
Do idiomatic C++ copy and move constructors for a few things, so wrapping structs' defaults can work.
Diffstat (limited to 'src/libstore/derivations.hh')
-rw-r--r--src/libstore/derivations.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh
index 7222d25e5..f010318ce 100644
--- a/src/libstore/derivations.hh
+++ b/src/libstore/derivations.hh
@@ -22,6 +22,9 @@ struct DerivationOutput
, hashAlgo(std::move(hashAlgo))
, hash(std::move(hash))
{ }
+ DerivationOutput(const DerivationOutput &) = default;
+ DerivationOutput(DerivationOutput &&) = default;
+ DerivationOutput & operator = (const DerivationOutput &) = default;
void parseHashInfo(bool & recursive, Hash & hash) const;
};