ankurjain
24th May 2006, 11:03
hi all,
i m making a QMap just like below:
QMap<QString,stack&> undoMap,redoMap;
and the error i get is as below:
C:\Qt\4.1.3\include\QtCore\../../src/corelib/tools/qmap.h(159) : warning C4181: qualifier applied to reference type ignored
..\include\mapStack.h(8) : see reference to class template instantiation 'QMap<class QString,class stack &>' being compiled
if i change the second parameter to pointer, it sompiles fine. can't we pass anything as parameters in QMap as well as QHash.
When shall i use QMap and QHash ?
Thanx in advance
i m making a QMap just like below:
QMap<QString,stack&> undoMap,redoMap;
and the error i get is as below:
C:\Qt\4.1.3\include\QtCore\../../src/corelib/tools/qmap.h(159) : warning C4181: qualifier applied to reference type ignored
..\include\mapStack.h(8) : see reference to class template instantiation 'QMap<class QString,class stack &>' being compiled
if i change the second parameter to pointer, it sompiles fine. can't we pass anything as parameters in QMap as well as QHash.
When shall i use QMap and QHash ?
Thanx in advance