Open ravindra181 opened 3 years ago
Please someone can you help me to fix the error
@iridinite : Can you please have a look at the problem My class is non copyable and non assignable but default moveable is enabled. The compilation error occurs when a property is registered. @acki-m can you please suggest what change is needed. I am trying to RTTR library into one of the biggest project for a large OEM
I have a base class which has deleted function (=delete) for copy constructor and assignment operator. Also the derived classes are creating template type object.
Whenever I am registering as below, a compilation error is generated: registration::class_("acc::proxy::ACCProxy")
.property("info", &ACCProxy::info)
(
policy::prop::as_reference_wrapper
);
Please help me to fix it so that I can do a successful registration.
==============Compile time error =================================== I am getting the following error: n file included from Rttr/include/rttr/detail/property/property_wrapper.h:39:0, from Rttr/include/rttr/detail/registration/registration_impl.h:38, from Rttr/include/rttr/registration.h:821, from cdcmaster/src/main.cpp:10: Rttr/include/rttr/detail/property/property_accessor.h: In instantiation of 'static bool rttr::detail::property_accessor::set_value(T&, const T&) [with T = ara::com::internal::proxy::Field]':
Rttr/include/rttr/detail/property/property_wrapper_member_object.h:256:55: required from 'bool rttr::detail::property_wrapper<rttr::detail::member_object_ptr, A C::*, void, Acc_Level, rttr::detail::get_as_ref_wrapper, rttr::detail::set_as_ref_wrapper, Metadata_Count>::set_value(rttr::instance&, rttr::argument&) const [with C = vwg::services::acc::proxy::ACCProxy; A = ara::com::internal::proxy::Field; rttr::access_levels Acc_Level = (rttr::access_levels)0; long unsigned int Metadata_Count = 0]'
cdcmaster/src/main.cpp:262:1: required from here
Rttr/include/rttr/detail/property/property_accessor.h:48:13: error: use of deleted function 'ara::com::internal::proxy::Field& ara::com::internal::proxy::Field::operator=(const ara::com::internal::proxy::Field&) [with FieldTraits = vwg::services::acc::ACC::info]'
prop = arg;