Comments (4)
So your first question is, whether it is allowed to register your reflection data also outside of RTTR_REGISTRATION inside any arbitrary code section?
Yes, it is possible, but I don't see the benefit of it. What is you actual use case?
At the moment the registration process has not mutex, so it is not thread safe, but when everything is called with RTTR_REGISTRATION
, it is.
Yes, sure no problem.
Remark, what is not possible is: Having the same class multiple times in the class hierarchy. E.g:
- base
*- derived: base
- master : derived_1, base
from rttr.
Thanks you for the aclaration of the second one, regarding the first one...
My entity system framework relied some Reflect tricks to make the Component class lightweight enough due those components are pre-allocated in a cache-coherent memory pool, so when you call an "Component" class from RTTR in reality you're calling the proxy classes.
Also another possiblity is i create a class, but there's no reflection yet, until i call an function which does this later, the reflected type will not be visible to RTTR until i call that function.
from rttr.
Does 1) Answer your question?
Yes, you can defer the registration process, but you have to make sure you are not register multiple types at the same time.
Otherwise I not yet understand your question.
from rttr.
Alright, thats all what i need, Thanks you for your quick response. sorry about the confusion, my english isn't my main language.
from rttr.
Related Issues (20)
- Access violation on type_register.cpp::549 get_base_types()
- get wrong result. HOT 1
- Can't retrieve data for variant
- Is it possible to get the type of a template? HOT 1
- warning: '<anonymous>' may be used uninitialized HOT 1
- max_sizeof_list returns incorrect value for template types
- How to combine with magic_enum to generate enum reflection automatically
- Support for vs2022 (c++20) HOT 1
- The value obtained is incorrect.
- Upload master to conan.
- Has this project dead? HOT 3
- H
- Reported compiler error on OSX when `BUILD_STATIC` is `ON`
- None of the versions compile for C++ 20 HOT 3
- Undefined symbols when use as static library.
- Casting an object instance to be the type stored in rttr::type
- Registration Error
- Build failure | Android | Clang
- Build failure | UWP | MSVC
- get_by_name failed
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 rttr.