File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,20 @@ using beman::any_view::any_view;
1212using enum beman::any_view::any_view_options;
1313
1414template <class ValueT >
15- using proxy_any_view = any_view<ValueT, input, ValueT>;
15+ using proxy_any_view = any_view<ValueT,
16+ input
17+ #if BEMAN_ANY_VIEW_USE_MOVE_ONLY()
18+ | move_only
19+ #endif
20+ ,
21+ ValueT>;
1622#elif BEMAN_ANY_VIEW_USE_TRAITS()
1723template <class ValueT >
1824struct proxy_traits {
1925 using reference_type = ValueT;
26+ #if BEMAN_ANY_VIEW_USE_MOVE_ONLY()
27+ static constexpr bool move_only = true ;
28+ #endif
2029};
2130
2231template <class ValueT >
@@ -25,7 +34,13 @@ using proxy_any_view = any_view<ValueT, proxy_traits<ValueT>>;
2534using beman::any_view::type;
2635
2736template <class ValueT >
28- using proxy_any_view = any_view<ValueT, {.reference_type = type<ValueT>}>;
37+ using proxy_any_view = any_view<ValueT,
38+ {
39+ .reference_type = type<ValueT>,
40+ #if BEMAN_ANY_VIEW_USE_MOVE_ONLY()
41+ .move_only = true ,
42+ #endif
43+ }>;
2944#endif
3045
3146constexpr auto sum (proxy_any_view<proxy_any_view<int >> views) {
You can’t perform that action at this time.
0 commit comments