Open mloskot opened 6 years ago
I'm not sure how the OP imagined this suggestion in detail, but for View& base()
we definitely need some extra info cached:
template <typename Loc>
class image_view
{
using base_type = typename Loc::template add_deref<Deref>::type;
{image_view<Loc> or base_type} & base_; // ???
image_view() : base_(*this) {}
template <typename View>
image_view(const View& v) : base_(v) {}
base_type& base() { return base_; }
};
Questions (/cc @stefanseefeld & @chhenning):
Moved from https://svn.boost.org/trac10/ticket/2229 description: