Add support for proxy_view and complementary infrastructure#218
Conversation
Shuenhoy
left a comment
There was a problem hiding this comment.
Thanks for the implementation!
In general, this is what I expected.
I think there can be some additional tests on the behaviors about const:
- const view from const proxy
const pro::proxy<TestFacade> p1 = ...;
pro::proxy_view<const TestFacade> p2 = p1;- const view from non const view
pro::proxy_view<TestFacade> p1 = ...;
pro::proxy_view<const TestFacade> p2 = p1;- const view from const raw
const int a = 0;
pro::proxy_view<const TestFacade> p = &a;
A small question: what is the consideration that the view needs to be explicitly added for each facade? Reducing compilation time and binary size? Avoiding misuses?
|
Thanks for the clarification.
My understanding is that the root issue stems from that |
|
Suggest adding benchmark cases to see the perf of |
|
@tian-lt I added benchmarks for |

Changes
observer_facade<F>for observing aproxy<F>via a raw pointer.proxy_view<F> = proxy<observer_facade<F>>.add_view<F>inbasic_facade_builderto allow implicit conversion fromproxy<F>toproxy_view<F>orproxy_view<const F>.