Troubleshooting
Problem
Generated code causes compiler errors C2667 and C2668 when creating C++ template functions in IBM Rational Rhapsody.
Symptom
The full error message is as follows:
error C2667: 'MyFunction' : none of 2 overload have a best conversion
error C2668: 'MyFunction' : ambiguous call to overloaded function
Cause
This is a bug in pre C++ 03 compilers, such as Microsoft Visual Studio C++ 6 (98).
Review the Microsoft Support Article ID 240869: BUG: C2667 and C2668 on Partial Ordering of Function Templates for more details.
Resolving The Problem
The C++ code generated by Rational Rhapsody is valid and compiles with more recent Microsoft Visual Studio compilers (for example, Visual Studio 2008/2010/2012); therefore, it is recommended that you upgrade to one of these compilers.
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21675452