Skip to content
Snippets Groups Projects
Commit 7d63a1ee authored by Jan Trávníček's avatar Jan Trávníček
Browse files

abstraction: fix a fixup - simplify casting

parent 6ebfaad6
No related branches found
No related tags found
1 merge request!227Merge jt
......@@ -13,7 +13,7 @@ public:
std::shared_ptr < abstraction::Value > run ( ) const override {
const std::shared_ptr < abstraction::Value > & param = std::get < 0 > ( this->getParams ( ) );
 
return std::make_shared < abstraction::ValueHolder < ReturnType > > ( object::ObjectFactory < ReturnType >::construct ( retrieveValue < const ParamType & > ( param ) ), true ); // FIXME revert object::ObjectFactory < ReturnType >::construct back to ReturnType since casting to object::Object will not be needed in new_normalization
return std::make_shared < abstraction::ValueHolder < ReturnType > > ( ReturnType ( retrieveValue < const ParamType & > ( param ) ), true );
}
 
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment