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

report ambiguous overload only in verbose mode

parent c6be213d
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,8 @@ std::shared_ptr < abstraction::OperationAbstraction > AlgorithmRegistry::getAbst ...@@ -133,7 +133,8 @@ std::shared_ptr < abstraction::OperationAbstraction > AlgorithmRegistry::getAbst
// throw exception::CommonException ( "Entry overload " + ss.str ( ) + " ambiguous." ); FIXME make better overload select algorithm // throw exception::CommonException ( "Entry overload " + ss.str ( ) + " ambiguous." ); FIXME make better overload select algorithm
best = compatibilityData [ * winner.begin ( ) ].second.second; best = compatibilityData [ * winner.begin ( ) ].second.second;
   
common::Streams::err << "Entry overload " + ss.str ( ) + " ambiguous. First selected." << std::endl; if(common::GlobalData::verbose)
common::Streams::err << "Entry overload " + ss.str ( ) + " ambiguous. First selected." << std::endl;
} else { } else {
std::stringstream ss; std::stringstream ss;
ss << paramTypes; ss << paramTypes;
......
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