Compile error since 11th Jan in juk on WinXP

Aaron J. Seigo aseigo at kde.org
Tue Jan 19 22:43:14 GMT 2010


On January 18, 2010, Thiago Macieira wrote:
> Em Segunda-feira 18. Janeiro 2010, às 01.33.30, Andrew Goodbody escreveu:
> > H:\src\km\svn\trunk\KDE\kdemultimedia\juk\tag.cpp:180: error: ambiguous
> > overload
> > 
> >   for 'operator<<' in
> > 
> > 'KDebug::operator()(int)(0).QDebug::operator<<(((const char
> > *)"Can\'t setup invalid file")) << TagLib::File::name() const()'
> 
> Don't you just love how gcc error messages are confusing and utterly
> useless?
> 
> From that above, the left side of operator<< is a QDebug, because I know
> the API.
> 
> But I don't know what the right side is. What does
> TagLib::File::name()const return?
 
a FileName, which is:

#ifdef _WIN32
  class TAGLIB_EXPORT FileName
  {
  public:
    FileName(const wchar_t *name) : m_wname(name) {}
    FileName(const char *name) : m_name(name) {}
    operator const wchar_t *() const { return m_wname.c_str(); }
    operator const char *() const { return m_name.c_str(); }
  private:
    std::string m_name;
    std::wstring m_wname;
  };
#else
  typedef const char *FileName;
#endif

*cough*

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
_______________________________________________
kde-multimedia mailing list
kde-multimedia at kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia


More information about the kde-multimedia mailing list