Comments (3)
Right now, "uvalue" doesn't support any casts and works like std::any with little specific features. But it can be added because I already do something like this in function calls (when we call functions with reference or pointer attributes on base classes). Of course, it will work only for registered classes with correct "base_<>" attributes.
I'll create a task for this feature!
from meta.hpp.
thank you. I think it will be useful.
from meta.hpp.
Upcasting is now supported. New example: UValue
from meta.hpp.
Related Issues (13)
- member functions that return void can't be reflected HOT 1
- Doesn't compile with C++23 in visual studio 2022 with /std:c++latest HOT 1
- "Resolve type by string" feature HOT 1
- add the ability to extend existing local scopes
- chaiscript+meta.hpp HOT 2
- add upcasting support in uvalue cast functions
- add ctor/dtor calling on raw memory
- Memeber as getter and setter HOT 1
- Registering names for contructor and methods arguments HOT 2
- Registering non-copyable classes HOT 2
- Resolve generic std::tuple HOT 7
- Tons of syntax errors in the header files. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta.hpp.