Closed dulalsaurab closed 1 year ago
ParamFetcher::getAbeType()
is a getter function if needed compiler should automatically make it inline? Also, it's a const
function, if we try to return a reference, will get an error binding reference of type ‘ndn::nacabe::AbeType&’ {aka ‘std::__cxx11::basic_string<char>&’} to ‘const AbeType’ {aka ‘const std::__cxx11::basic_string<char>’} discards qualifiers
.
m_abeType
is already private.
Would it be better to fix
ParamFetcher::getAbeType()
to be an inline function that returns a reference tom_abeType
? The member varm_abeType
should be private, also.