view: remove restrict before calculating value_type
restrict is poorly handled under libstdc++ in gcc-5.3
This commit is contained in:
parent
cac706dd3c
commit
bac238a5ef
4
view.hpp
4
view.hpp
@ -18,6 +18,8 @@
|
||||
#ifndef __UTIL_VIEW_HPP
|
||||
#define __UTIL_VIEW_HPP
|
||||
|
||||
#include "./types/traits.hpp"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
@ -25,7 +27,7 @@ namespace util {
|
||||
template <typename T>
|
||||
struct view {
|
||||
public:
|
||||
using value_type = typename std::iterator_traits<T>::value_type;
|
||||
using value_type = typename std::iterator_traits<remove_restrict_t<T>>::value_type;
|
||||
|
||||
template <size_t S>
|
||||
constexpr view (const value_type (&arr)[S]) noexcept;
|
||||
|
Loading…
Reference in New Issue
Block a user