In strong typing a range-v3 view, I found its sizeof to not match my expectations. It turns out that both the strong type and its wrapped, sole data member view both inherit from basic_view<unknown>, which means that EBO can't kick in. Seems like I'll have to inherit from it rather than compose it and inherit from view_interface (which is how it also inherits from basic_view<unknown>).
In strong typing a range-v3 view, I found its
sizeof
to not match my expectations. It turns out that both the strong type and its wrapped, sole data member view both inherit frombasic_view<unknown>
, which means that EBO can't kick in. Seems like I'll have to inherit from it rather than compose it and inherit fromview_interface
(which is how it also inherits frombasic_view<unknown>
).Demonstration: https://godbolt.org/z/7ruD3C.