summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code/src_script_qscriptclass.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2011-08-26 15:43:06 +0200
committerLiang Qi <liang.qi@nokia.com>2011-09-02 12:46:39 +0200
commitca34cc75294e0d2a8bc491a2c679fe8a69cd0408 (patch)
tree5b6bb61a1d32b187755135dde508ca3bb4bd4e5d /doc/src/snippets/code/src_script_qscriptclass.cpp
parent6b1a8129623e3716f2fc075608b260ce7c381fe2 (diff)
downloadqt4-tools-ca34cc75294e0d2a8bc491a2c679fe8a69cd0408.tar.gz
Wrap calls to Sequence::push_back
In C++11 push_back is overloaded to support rvalue-references, void std::vector<T>::push_back(const T &); void std::vector<T>::push_back(T &&); so attempting to get the address for push_back is ambiguous. Instead of hardcoding the function signature, the better and more general solution is to allow the compiler to do the required overload resolution itself, also allowing for implicit conversions to take place. Task-number: QTBUG-18996 Done-with: Liang Qi Reviewed-by: Olivier Goffart
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptclass.cpp')
0 files changed, 0 insertions, 0 deletions