New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange compile error: clang7.0 #110
Comments
from every type you register (direct or indirect (e.g. as function return value, argument, etc..) a variant creation function will be created (but only for pointer types) Regarding your problem: can you please make a simple test case for me? This would help me a lot. |
Jeah for sure!, I studied the problem, its kind of strange... (it seems correct..., maybe compiler bug...) |
how do you register indirectly? rttr::type foo( return rttr::type::get<T>(); ) ? |
this will register also the type Regarding the test case, remove to much code, so that it compiles again. Then copy the code that seem to instantiate the problematic code in a separate TU and compile it. When it fails again, upload it here. |
Ok, made it compile removed everything (no rttr includes): Standalone compilation: (Test.cpp)
Output:
InApp Test:
Outputs:
|
Thx for the help! |
Could it be that |
I really dont get the error:
Test.sh
gives:
Thas all?? Any clue??? |
@acki-m : Got it: with the the macro sourounding it works
Makes sense, we need this |
ahhh, I just thought you just simplified the test case and has leave out the macro. You can also not compile this:
without putting it in a function or assigning a value
The same like the registration call.
|
thanks (that was a bit stupid from my side, I though it also works, because you wrote it like so :-)) |
Is this now solved for you? |
jeah, I think its just when I try to compile |
I have a simple use case which compiles fine:
https://github.com/gabyx/ExecutionGraph/blob/c4b1cccfd855d418dfb3fe53b2cc257aaabcbf14/tests/src/main_Factory.cpp#L36
In another target, I am not even using registration, only
RTTR_ENABLE(...)
.I get some strange errors:
Backend.hpp
can you make up anything from this? Why does he need
rttr::variant::variant<const bool &, bool>
I am nowhere using an
rttr::variant
The text was updated successfully, but these errors were encountered: