diff options
author | John Hodge <tpg@ucc.asn.au> | 2018-11-04 20:28:32 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2018-11-04 20:28:32 +0800 |
commit | 1726886913173c2828e962d7c5d384e3915d0ae3 (patch) | |
tree | c3864d5b5297cd273db968e329953861388b93fa /src/include/span.hpp | |
parent | 17be046b4ea045118664d1420cf3263770921a4f (diff) | |
download | mrust-1726886913173c2828e962d7c5d384e3915d0ae3.tar.gz |
All - Cleaning up some memory leaks
Diffstat (limited to 'src/include/span.hpp')
-rw-r--r-- | src/include/span.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/span.hpp b/src/include/span.hpp index 68d6bfdf..d41fa81e 100644 --- a/src/include/span.hpp +++ b/src/include/span.hpp @@ -46,10 +46,14 @@ struct Span end_line(end_line), end_ofs(end_ofs) {} - Span(const Span& x); + Span(const Span& x) = default; + Span(Span&& x) = default; Span(const Position& position); Span(); + Span& operator=(const Span& x) = default; + Span& operator=(Span&& x) = default; + void bug(::std::function<void(::std::ostream&)> msg) const; void error(ErrorType tag, ::std::function<void(::std::ostream&)> msg) const; void warning(WarningType tag, ::std::function<void(::std::ostream&)> msg) const; |