Uwe Stöhr wrote:
> After I applied the latest MSVC service pack, I get this error:
> 
> D:\LyXSVN\lyx-devel\lyx-windows-deps-msvc-qt4\qt-4\include\QtCore/qmap.h(908)
> :
> error C2244: 'QMultiMap<Key,T>::replace':
> no conformance found for function definition with existing declaration
>   
> D:\LyXSVN\lyx-devel\lyx-windows-deps-msvc-qt4\qt-4\include\QtCore/qmap.h(893):
> 
> see declaration of 'QMultiMap<Key,T>::replace'
>    definition
>    'QMap<aKey,aT>::iterator QMultiMap<Key,T>::replace(const Key &,const
> T &)'
>    existing declaration
>    'QMap<aKey,aT>::iterator QMultiMap<Key,T>::replace(const Key &,const
> T &)'
> 
> This appears whenever I want to compile a file from
> SVN\lyx-devel\src\frontends\qt4.
> 
> The problematic code in qmap.h is (line 906-908):
> 
> template <class Key, class T>
> Q_INLINE_TEMPLATE Q_TYPENAME QMap<Key, T>::iterator QMultiMap<Key,
> T>::replace(const Key &akey, const T &avalue)
> { return QMap<Key, T>::insert(akey, avalue); }
> 
> the definition there is (line 893):
> inline typename QMap<Key, T>::iterator replace(const Key &key, const T
> &value);
> 
> What could be the problem?
> 
> Does anybody have the same problem after upgrading MSVC?
> 
> regards Uwe
> 

With the SP Microsoft have broken some template support, seems
they run out of money ;)

There is a patch from Trolltech (search the qt-interest list), and since
some days there is also a patch for the compiler (again have a look at
the list).

-- 
Peter Kümmel

Reply via email to