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

fix one of the dispatch algorithms

parent 7ab44ce5
No related branches found
No related tags found
No related merge requests found
......@@ -423,7 +423,7 @@ public:
};
 
static ReturnType dispatch ( StaticParamType res, const FirstParameterType & first, const SecondParameterType & second ) {
typename std::map < std::pair < std::type_index, std::type_index >, RegistratorWrapperBase * >::iterator callback = getInstance ( ).registeredFunctions.find ( std::make_pair ( std::type_index ( typeid ( first ) ), std::type_index ( typeid ( first ) ) ) );
typename std::map < std::pair < std::type_index, std::type_index >, RegistratorWrapperBase * >::iterator callback = getInstance ( ).registeredFunctions.find ( std::make_pair ( std::type_index ( typeid ( first ) ), std::type_index ( typeid ( second ) ) ) );
 
if ( callback == getInstance ( ).registeredFunctions.end ( ) ) {
std::string firstType = std::cstringToString ( std::type_name ( typeid ( first ) ) );
......
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