Skip to content

Commit

Permalink
[RF] Make spans assignable.
Browse files Browse the repository at this point in the history
  • Loading branch information
hageboeck committed Jul 22, 2019
1 parent 5d31bf0 commit 4905ad2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/foundation/inc/ROOT/span.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public:
: length_(l.size()), data_(std::begin(l))
{}

span& operator=(span const&) noexcept = delete;
span& operator=(span const&) noexcept = default;
span& operator=(span &&) noexcept = delete;

/*
Expand Down Expand Up @@ -432,8 +432,8 @@ private:
}

private:
index_type const length_;
pointer const data_;
index_type length_;
pointer data_;
};
// }}}
} // inline namespace __ROOT
Expand Down
3 changes: 3 additions & 0 deletions roofit/roofitcore/inc/RooSpan.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ class RooSpan {
{ }


RooSpan<T>& operator=(const RooSpan<T>& other) = default;


constexpr typename std::span<T>::iterator begin() const {
return _span.begin();
}
Expand Down

0 comments on commit 4905ad2

Please sign in to comment.