Merge master into FTRetinaSeedRawBanks
Realign FTRetinaSeedRawBanks with master branch
Merge request reports
Activity
Filter activity
44 44 namespace Future { 45 45 46 /** Returns the full location of the container in the Data Store 47 * 48 * @param pObj Data object 49 * 50 * @return Location of given data object 51 */ 52 template <typename TYPE> 53 inline auto objectLocation( const TYPE& pObj ) { 54 return ( pObj.registry() ? pObj.registry()->identifier() : "UnRegistered" ); 55 } 56 template <typename TYPE> 57 inline auto objectLocation( const TYPE* pObj ) { 58 return ( !pObj ? "Null DataObject !" : objectLocation( *pObj ) ); 59 } there is no need for templates here -- it actually relies on
TYPE
inheriting fromDataObject
, i.e. this could be:inline auto objectLocation( const DataObject& pObj ) { return ( pObj.registry() ? pObj.registry()->identifier() : "UnRegistered" ); } inline auto objectLocation( const DataObject* pObj ) { return ( !pObj ? "Null DataObject !" : objectLocation( *pObj ) ); }
Edited by Gerhard Raven
mentioned in commit d7e762f6
Please register or sign in to reply