Registry / utility / dyno
library2019-11-13vcpkgunverified

Runtime polymorphism done right

vcpkg install dyno
INSTALL
IMPORT
SIG · DYNO
D
dyno
utilitycppv2019-11-13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dyno.hpp
#include <dyno.hpp>

Define a type-erased interface using Dyno.

#include <dyno.hpp> struct Drawable : decltype(dyno::requires( "draw", [](auto const& self) { return self.draw(); } )) {}; int main() { auto circle = dyno::poly<Drawable>(Circle{}); circle->draw(); return 0; }
Debug
Known issues
gotchaDyno is header-only and requires C++17 or later.
fix
Ensure your project uses C++17 or higher.
affects: *
Upgrade
Version history
2019-11-13latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources

No resource links recorded.

dyno — pip install dyno · libregistry