diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-28 16:25:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-28 16:26:33 +0200 |
commit | 9308f353186fb39a02eddfc281fc72ac1026e0b6 (patch) | |
tree | 7c655cf5e142c811ff4dc652ec6d69c7ce133a57 /compilerplugins/clang/implicitboolconversion.cxx | |
parent | 36936d5a8c2e6fc32dcc65d860bdfdafd2fbb766 (diff) |
Adapt to Clang 3.4 (in preparation of a buildbot on CentOS 7)
Change-Id: Ie2859f03b31c57deb7fd0deba3285f782e33b239
Diffstat (limited to 'compilerplugins/clang/implicitboolconversion.cxx')
-rw-r--r-- | compilerplugins/clang/implicitboolconversion.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx index 1e4c5e29c0cf..79dc8fba2726 100644 --- a/compilerplugins/clang/implicitboolconversion.cxx +++ b/compilerplugins/clang/implicitboolconversion.cxx @@ -21,7 +21,9 @@ #if CLANG_VERSION < 30700 -template<> struct std::iterator_traits<ExprIterator> { +namespace std { + +template<> struct iterator_traits<ExprIterator> { typedef std::ptrdiff_t difference_type; typedef Expr * value_type; typedef Expr const ** pointer; @@ -29,7 +31,7 @@ template<> struct std::iterator_traits<ExprIterator> { typedef std::random_access_iterator_tag iterator_category; }; -template<> struct std::iterator_traits<ConstExprIterator> { +template<> struct iterator_traits<ConstExprIterator> { typedef std::ptrdiff_t difference_type; typedef Expr const * value_type; typedef Expr const ** pointer; @@ -37,6 +39,8 @@ template<> struct std::iterator_traits<ConstExprIterator> { typedef std::random_access_iterator_tag iterator_category; }; +} + #endif namespace { |