hi all,
i m making a QMap just like below:
Qt Code:
QMap<QString,stack&> undoMap,redoMap;To copy to clipboard, switch view to plain text mode
and the error i get is as below:
if i change the second parameter to pointer, it sompiles fine. can't we pass anything as parameters in QMap as well as QHash.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
When shall i use QMap and QHash ?
Thanx in advance
Bookmarks