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

fix detection of cast noop

parent 565c3987
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -27,7 +27,7 @@ std::shared_ptr < abstraction::OperationAbstraction > CastRegistry::getAbstracti ...@@ -27,7 +27,7 @@ std::shared_ptr < abstraction::OperationAbstraction > CastRegistry::getAbstracti
} }
   
bool CastRegistry::isNoOp ( const std::string & target, const std::string & param ) { bool CastRegistry::isNoOp ( const std::string & target, const std::string & param ) {
return ext::erase_template_info ( param ) == ext::erase_template_info ( target ); return ext::is_same_type ( ext::erase_template_info ( target ), ext::erase_template_info ( param ) );
} }
   
bool CastRegistry::castAvailable ( const std::string & target, const std::string & param ) { bool CastRegistry::castAvailable ( const std::string & target, const std::string & param ) {
......
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