proxy
Proxy: Next Generation Polymorphism in C++ (by microsoft)
iface
Anonymous, non-intrusive interfaces in C++ (by j-nikki)
proxy | iface | |
---|---|---|
3 | 1 | |
1,202 | 6 | |
34.5% | - | |
7.5 | 0.0 | |
11 days ago | over 3 years ago | |
C++ | C++ | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proxy
Posts with mentions or reviews of proxy.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-24.
-
Static Interfaces, concepts vs de-virtualisation?
Proxy seems more likely than Dyno or AnyAny to be a standard way of doing this in C++'s future.
-
C++ Polymorphism Without Inheritance Using Glaze
https://github.com/microsoft/proxy Implementation submitted for standarization
-
Runtime Concept Idiom: Opinions
So basically you have to undo the type erasure? I think I'm going to try the proxy library found here. https://github.com/microsoft/proxy
iface
Posts with mentions or reviews of iface.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2020-12-22.
-
iface - Anonymous, non-intrusive interfaces in C++
I think I do it differently. In iface, if the copied-from interface instance concerns a superset of the contract that the interface being constructed does, I will point to the matching subrange (line 195 in particular here). Otherwise I add another layer of indirection.
What are some alternatives?
When comparing proxy and iface you can also consider the following projects:
Aggreget - Use your structures like tuples. Similar to MagicGet but using C++ 20 concepts.
DynaMix - :fish_cake: A new take on polymorphism
kumi - C++20 Compact Tuple Tools
indicators - Activity Indicators for Modern C++
glfwpp - GLFW C++ Wrapper - thin, modern, C++17, header-only GLFW wrapper
cpp-from-the-sky-down
glaze - Extremely fast, in memory, JSON and interface library for modern C++
cr - cr.h: A Simple C Hot Reload Header-only Library
polytail - Rust-like trait-based polymorphism for C++
tabulate - Table Maker for Modern C++
dyno - Runtime polymorphism done right
AnyAny - C++17 library for comfortable and efficient dynamic polymorphism