OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [ambig2.C] - Rev 701

Go to most recent revision | Compare with Previous | Blame | View Log

// 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); }

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.