From bac238a5eff91c767e61a4cf5b374e07ff96850b Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 16 Mar 2016 19:27:58 +1100 Subject: [PATCH] view: remove restrict before calculating value_type restrict is poorly handled under libstdc++ in gcc-5.3 --- view.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/view.hpp b/view.hpp index 300aea94..e588e272 100644 --- a/view.hpp +++ b/view.hpp @@ -18,6 +18,8 @@ #ifndef __UTIL_VIEW_HPP #define __UTIL_VIEW_HPP +#include "./types/traits.hpp" + #include #include @@ -25,7 +27,7 @@ namespace util { template struct view { public: - using value_type = typename std::iterator_traits::value_type; + using value_type = typename std::iterator_traits>::value_type; template constexpr view (const value_type (&arr)[S]) noexcept;