bool Class_name::method_name(int item_name,int item_rel_level = REL_LEVEL_INDEPENDENT){ // тело функции return false;}
C++ (Qt)func(int v, const QMap<QString,QString>& m = QMap<QString,QString>()) {}
int test_method(int index,const QMap <QString,QString>& additional_params);int Calc_item::test_method(int index, const QMap <QString,QString>& additional_params = QMap <QString,QString>()){ return 1;}
int test_method(int index,QMap <QString,QString> additional_params);int Class_name::test_method(int index, QMap <QString,QString> additional_params = QMap <QString,QString>()){ return 1;}
int test_method(int index,const QMap <QString,QString>& additional_params = QMap <QString,QString>());int Calc_item::test_method(int index, const QMap <QString,QString>& additional_params){ return 1;}
Running build steps for project test_proj...Configuration unchanged, skipping QMake step.Starting: C:/Qt/2009.02/mingw/bin/mingw32-make.exe -w C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `D:/QT/job/test_proj'C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Debugmingw32-make.exe[1]: Entering directory `D:/QT/job/test_proj'g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\2009.02\qt\include\QtCore" -I"c:\Qt\2009.02\qt\include\QtGui" -I"c:\Qt\2009.02\qt\include" -I"c:\Qt\2009.02\qt\include\ActiveQt" -I"debug" -I"." -I"c:\Qt\2009.02\qt\mkspecs\win32-g++" -o debug\main.o main.cppIn file included from mainwindow.h:7,from main.cpp:2:class_name.h:12: error: expected `,' or `...' before '>' tokenclass_name.h:12: error: missing `>' to terminate the template argument listclass_name.h:12: error: wrong number of template arguments (1, should be 2)c:/Qt/2009.02/qt/include/QtCore/../../src/corelib/io/qdatastream.h:66: error: provided for `template<class Key, class T> class QMap'mingw32-make.exe[1]: Leaving directory `D:/QT/job/test_proj'C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `D:/QT/job/test_proj'mingw32-make.exe[1]: *** [debug/main.o] Error 1C:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** [debug] Error 2Exited with code 2.Error while building project test_projWhen executing build step 'Make'
int test_method(int index,const QMap <QString,QString>& additional_params);
typedef QMap <QString,QString> QSSMap;..int test_method(int index,const QSSMap & additional_params);