Skip to content

Commit a9ad891

Browse files
Remove some references
1 parent e7b7990 commit a9ad891

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GPU/Common/MemLayout.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct wrapper : public S<F> {
7878
constexpr wrapper() = default;
7979
constexpr wrapper(Base b) : Base{static_cast<Base&&>(b)} {}
8080
template <template <class> class F_other>
81-
constexpr wrapper(S<F_other>& other) : Base{other.apply(AggregateConstructor<Base>{})} {}
81+
constexpr wrapper(S<F_other> other) : Base{other.apply(AggregateConstructor<Base>{})} {}
8282

8383
constexpr wrapper<S, reference> operator[] (size_t i) { return Base::apply(RandomAccessAt<S<reference>>{i}); }
8484
constexpr wrapper<S, const_reference> operator[] (size_t i) const { return Base::apply(RandomAccessAt<S<const_reference>>{i}); }
@@ -94,7 +94,7 @@ struct wrapper<S, value> : public S<value> {
9494
constexpr wrapper() = default;
9595
constexpr wrapper(Base b) : Base{static_cast<Base&&>(b)} {}
9696
constexpr wrapper(const S<reference>& other) : Base(other.apply(AggregateConstructor<Base>{})) {}
97-
constexpr wrapper(const S<const_reference> other) : Base(other.apply(AggregateConstructor<Base>{})) {}
97+
constexpr wrapper(const S<const_reference>& other) : Base(other.apply(AggregateConstructor<Base>{})) {}
9898

9999
//constexpr S<MemLayout::pointer> operator& () { return apply(GetPointer<S<MemLayout::pointer>>{}); }
100100
//constexpr S<MemLayout::const_pointer> operator& () const { return apply(GetPointer<S<MemLayout::const_pointer>>{}); }

0 commit comments

Comments
 (0)