[mythtv] SVN build error that's beyond me

Janne Grunau janne-mythtv at grunau.be
Mon Mar 31 00:13:42 UTC 2008


On Monday 31 March 2008 01:57:10 Nigel Pearson wrote:
[...]
> -o datadirect.o datadirect.cpp
> frequencytables.h: In function 'bool operator==(const
> transport_scan_items_it_t&, const transport_scan_items_it_t&)':
> frequencytables.h:231: error: ISO C++ says that these are ambiguous,
> even though the worst conversion for the first is better than the
> worst conversion for the second:
> /Volumes/MythBuild/.osx-packager/build/include/QtCore/qlinkedlist.h:
> 126: note: candidate 1: bool QLinkedList<T>::iterator::operator==
> (const QLinkedList<T>::iterator&) const [with T = TransportScanItem]
> frequencytables.h:225: note: candidate 2: bool operator==(const
> transport_scan_items_it_t&, const
> Q3ValueListIterator<TransportScanItem>&)
> make: *** [datadirect.o] Error 1
>
>
> The error is at:
>       return (A._it == B._it)
> yet the similar comparison in the next inline:
>      return (A._it != B._it)
> causes no problem.

does "!(A._it != B._it)" work?

> Some sort of Q3ValueList overload weirdness?

Probably yes. Which qt version?

Similar Q3ValueList weirdness led to the replacement with QList in 
[16803]. I'll convert this tomorrow if you don't beat me to it.

Janne


More information about the mythtv-dev mailing list