summaryrefslogtreecommitdiff
path: root/src/include/span.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/span.hpp')
-rw-r--r--src/include/span.hpp6
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;