Wrong yellow underlined with constructor
Hi my friends.
I want to ask if this is problem of Qt Creator. (I use Qt Creator 3.5.0 opensource based on Qt 5.5.0, and use C++11)
I write a next code :
Code:
int c = 0;
for(int a=0;a<m_s;a++) {
for(int b=0;b<m_s;b++) {
m_substCodeToPair[c] = std::pair<int,int>(a,b);
c++;
}
}
}
pair appear with a yellow-green underline, and if i move my mouse there it tell me "Too few arguments"
If a compile, it compile fine, but Qt Creator always underline there.
What i can do in order to remove this warning underline ?
Daniel
Re: Wrong yellow underlined with constructor
Nobody answer.
So i think it is a bug of Qt Creator.
I resolve this in other way, instead of
Code:
m_substCodeToPair[c] = std::pair<int,int>(a,b);
i can write
Code:
m_substCodeToPair[c] = std::make_pair(a,b);
and now i not see any underline.
I write this, for a case some other people use this std classes with Qt.
Anyway QPair works at expected with Qt Creator.
Daniel