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
{{ message }}
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
I took a quick look at this, starting at CParameterMgr and working upwards changing the necessary parameters/member variables. However, I hit an issue when hitting ConfigurableElementAggregator.cpp whereby it defines the following function pointer typedef (in .h):
The issue being that in if the parameter for the doAggregate function is changed from a const * CConfigurableElement to a const std::unique_ptr then the function pointer dereferencing here:
fails to work (as far as I can tell, because the ->* operator has not been defined properly for smart pointers...yet).
The only other option I can see (though someone with better C++ will probably have something better) is to use shared pointers instead - then for this doAggregate issue in particular, presumably a raw pointer could also be created to the object (which in turn could then be used as in the code right now).
Not ideal, but haven't got any other ideas off the top of my head.
Activity
krocard commentedon Nov 15, 2015
I agree with you.
Nevertheless we do not plan on updating the code to C++11 in one big bang. Rather each time some code is modified, it is updated in the same time.
I will mark this enhancement as trivial. Maybe a newcomer will pick it up.
divserge commentedon Jan 10, 2017
Hello everyone
Is this enchantment still viable? I'd be glad to resolve this one.
dawagner commentedon Jan 11, 2017
Hi, @divserge. Is it still relevant and you are welcome to tackle it; thanks!
DanielLowry commentedon Jun 25, 2017
I took a quick look at this, starting at CParameterMgr and working upwards changing the necessary parameters/member variables. However, I hit an issue when hitting ConfigurableElementAggregator.cpp whereby it defines the following function pointer typedef (in .h):
typedef bool (CConfigurableElement::*MatchesAggregationCriterion)() const;
The issue being that in if the parameter for the doAggregate function is changed from a const * CConfigurableElement to a const std::unique_ptr then the function pointer dereferencing here:
if(!(pConfigurableElement->*_pfnMatchesAggregationCriterion)())
fails to work (as far as I can tell, because the ->* operator has not been defined properly for smart pointers...yet).
The only other option I can see (though someone with better C++ will probably have something better) is to use shared pointers instead - then for this doAggregate issue in particular, presumably a raw pointer could also be created to the object (which in turn could then be used as in the code right now).
Not ideal, but haven't got any other ideas off the top of my head.
Any thoughts?
Added: smart pointers to CParameterMgr issue intel#311
Added: smart pointers to ParameterMgrPlatformConnecto issue intel#311
Added: smart pointers in CParameterMgr issue intel#311
Added: smart pointers in ParameterMgrPlatformConnector issue intel#311
Added: smart pointers in ParameterMgrPlatformConnector issue intel#311
Added: smart pointers in ParameterMgrPlatformConnector issue intel#311