Commit 97068489 by Jason Merrill

call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if all the ambiguous…

call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if all the ambiguous conversions are bad.

        * call.c (build_user_type_conversion_1): Do set ICS_BAD_FLAG if
        all the ambiguous conversions are bad.

From-SVN: r61249
parent e1dfc61b
// Bug: g++ thought that the QChar overload was a viable but ambiguous
// candidate. It isn't viable, because there's no conversion from const
// char * to QChar.
class QChar {
public:
QChar( char c );
QChar( unsigned char c );
};
class QString
{
public:
QString( const char *str ); // deep copy
QString &insert( unsigned int index, const QString & );
QString &insert( unsigned int index, QChar );
QString &prepend( const char* );
};
inline QString &QString::prepend( const char* s )
{ return insert(0,s); }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment