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

Reply via email to