iface
Anonymous, non-intrusive interfaces in C++ (by j-nikki)
proxy
Proxy: Next Generation Polymorphism in C++ (by microsoft)
iface | proxy | |
---|---|---|
1 | 3 | |
6 | 1,202 | |
- | 34.5% | |
0.0 | 7.5 | |
over 3 years ago | 15 days 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.
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.
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
What are some alternatives?
When comparing iface and proxy you can also consider the following projects:
DynaMix - :fish_cake: A new take on polymorphism
Aggreget - Use your structures like tuples. Similar to MagicGet but using C++ 20 concepts.
indicators - Activity Indicators for Modern C++
kumi - C++20 Compact Tuple Tools
cpp-from-the-sky-down
glfwpp - GLFW C++ Wrapper - thin, modern, C++17, header-only GLFW wrapper
cr - cr.h: A Simple C Hot Reload Header-only Library
glaze - Extremely fast, in memory, JSON and interface library for modern C++
tabulate - Table Maker for Modern C++
polytail - Rust-like trait-based polymorphism for C++
dyno - Runtime polymorphism done right
AnyAny - C++17 library for comfortable and efficient dynamic polymorphism