diff options
author | David Faure <faure@kde.org> | 2009-08-20 16:26:28 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-20 16:28:31 (GMT) |
commit | e90a5e819478b656963de0492a1b234c8863a12b (patch) | |
tree | 6ebc27658c287a4b4aa9c6e8f1fb1420d8578426 /src/corelib/tools/qbytearray.h | |
parent | 7a305fdc28d4062e37f424f284811b39c8d327d8 (diff) | |
download | Qt-e90a5e819478b656963de0492a1b234c8863a12b.zip Qt-e90a5e819478b656963de0492a1b234c8863a12b.tar.gz Qt-e90a5e819478b656963de0492a1b234c8863a12b.tar.bz2 |
Add value_type definition for STL compatibility.
Fixes compilation of std::back_inserter(myQByteArray) when compiling with
"-std=c++0x -pedantic". Some code (ifdef'ed with CXX0X) in stl_iterator.h uses
value_type. Can't hurt to define it, even if the code is marked experimental.
gcc 4.3.3, libstdc++6-4.3.
Merge-request: 1286
Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
-rw-r--r-- | src/corelib/tools/qbytearray.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qbytearray.h b/src/corelib/tools/qbytearray.h index 635c799..e952ea2 100644 --- a/src/corelib/tools/qbytearray.h +++ b/src/corelib/tools/qbytearray.h @@ -310,6 +310,7 @@ public: // stl compatibility typedef const char & const_reference; typedef char & reference; + typedef char value_type; void push_back(char c); void push_back(const char *c); void push_back(const QByteArray &a); |