This website works better with JavaScript.
Explore
Help
Register
Sign In
flanchan
/
opaque_handle
Watch
1
Star
0
Fork
You've already forked opaque_handle
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
A single-header-only opaque type-erased object handle library for C++. For interop with C libraries that use incomplete types and for general type-erasure and type-safe internal casting.
12
Commits
1
Branch
0
Tags
54 KiB
C++
100%
da8429e49c
Go to file
HTTPS
Download ZIP
Download TAR.GZ
Download BUNDLE
Clone in VS Code
Avril
da8429e49c
Fixed test name-demangler relying on faulty string information.
...
Fortune for opaque_handle's current commit: Future small blessing − 末小吉
3 years ago
include
Added `opaque_handle::[try_]get_type()`: Get an `std::type_info` if possible.
3 years ago
src
Fixed test name-demangler relying on faulty string information.
3 years ago
.gitignore
Tested all variants of `make_opaque_handle()`, they all work. `opaque_handle` workable in a project; however. `try_cast()` does not work correctly and will not return `nullptr` if the types are wrong. TODO: Fixing this will require a refactor to use another inheritance graph of objects instead of `void*`, however, this is intended for work using C interfaces, so it"s not a high priority for it to work on polymorphic types.
3 years ago