Fix compilation with gcc-4.7 in C++0x mode.

This commit is contained in:
Mark de Wever 2011-07-08 19:49:02 +00:00
parent ef8da5aa77
commit 71d9ce8052

View file

@ -38,7 +38,7 @@ private:
* missing default constructor for vconfig. Not entirely sure whether it's a
* bug in gcc or not. For now make the code conditional.
*/
#if __GNUC__ == 4 && __GNUC_MINOR__ == 6 && defined(__GXX_EXPERIMENTAL_CXX0X__)
#if __GNUC__ == 4 && (__GNUC_MINOR__ == 6 || __GNUC_MINOR__ == 7) && defined(__GXX_EXPERIMENTAL_CXX0X__)
template<class T1, class T2>
friend class std::pair;
#endif