You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When I create basic HelloWorld with rttr it doesn't build if I choose C++ 20 in my Cmake file (set(CMAKE_CXX_STANDARD 20)).
It does build if I use C++17.
If I download RTTR directly from RTTR Github and apply simple patch I can compile helloworld.
Proposed solution
My proposal is to upadte RTTR in vcpkg to the latest commit and make necessary changes so programs that using rttr and C++20 could be build.
Describe alternatives you've considered
Fine alternative is to add rtti to sourcetree of my project and use local version instead of provided by vcpkg.
I also managed to change rttr's portfile.cmake and related patches to do what I want but it should be carefully maintained every time I update vckg subrepo.
Additional context
It seems that RTTI is abandoned by it's creator. Lots of unmerged PRs and unanswered tickets 😥
Mentioned helloworld and patch to rttr
Helloworld from here
Just in case error message when building with C++20:
rtti1\out\build\x64-Debug\vcpkg_installed\x64-windows\include\rttr\detail\registration\bind_impl.h(358): error C2760: syntax error: ')' was unexpected here; expected 'expression'
rtti1\out\build\x64-Debug\vcpkg_installed\x64-windows\include\rttr/detail/registration/bind_impl.h(349): note: This diagnostic occurred in the compiler generated function 'std::unique_ptr<rttr::detail::property_wrapper_base,std::default_deleterttr::detail::property_wrapper_base> rttr::registration::bindrttr::detail::prop,Class_Type,A,acc_level::create_default_property(rttr::string_view,Acc)'
rtti1\out\build\x64-Debug\vcpkg_installed\x64-windows\include\rttr/detail/registration/bind_impl.h(428): note: see reference to class template instantiation 'rttr::registration::bindrttr::detail::prop,Class_Type,A,acc_level' being compiled
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When I create basic HelloWorld with rttr it doesn't build if I choose C++ 20 in my Cmake file (
set(CMAKE_CXX_STANDARD 20)
).It does build if I use C++17.
If I download RTTR directly from RTTR Github and apply simple patch I can compile helloworld.
Proposed solution
My proposal is to upadte RTTR in vcpkg to the latest commit and make necessary changes so programs that using rttr and C++20 could be build.
Describe alternatives you've considered
Fine alternative is to add rtti to sourcetree of my project and use local version instead of provided by vcpkg.
I also managed to change rttr's portfile.cmake and related patches to do what I want but it should be carefully maintained every time I update vckg subrepo.
Additional context
It seems that RTTI is abandoned by it's creator. Lots of unmerged PRs and unanswered tickets 😥
Mentioned helloworld and patch to rttr
Helloworld from here
Patch is:
Just in case error message when building with C++20:
The text was updated successfully, but these errors were encountered: