Adapt to Clang 3.4 (in preparation of a buildbot on CentOS 7)

Change-Id: Ie2859f03b31c57deb7fd0deba3285f782e33b239
This commit is contained in:
Stephan Bergmann
2016-06-28 16:25:55 +02:00
parent 36936d5a8c
commit 9308f35318
13 changed files with 55 additions and 18 deletions

View File

@@ -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 {