From e90a5e819478b656963de0492a1b234c8863a12b Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 20 Aug 2009 18:26:28 +0200 Subject: 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 --- src/corelib/tools/qbytearray.h | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v0.12