Fixed compile error with std::array

libc++ enables std::array in c++98 mode, but <type_traits> doesn't.
This commit is contained in:
Kohei Takahashi
2017-10-13 20:04:11 +09:00
parent 0d37235d1c
commit 42a01fc3f4

View File

@ -8,7 +8,7 @@
#define BOOST_FUSION_STD_ARRAY_ARRAY_SIZE_01062013_1700 #define BOOST_FUSION_STD_ARRAY_ARRAY_SIZE_01062013_1700
#include <cstddef> #include <cstddef>
#include <type_traits> #include <boost/type_traits/integral_constant.hpp>
namespace boost { namespace fusion namespace boost { namespace fusion
{ {
@ -18,7 +18,7 @@ namespace boost { namespace fusion
struct std_array_size; struct std_array_size;
template<template<typename, std::size_t> class Array, typename T, std::size_t N> template<template<typename, std::size_t> class Array, typename T, std::size_t N>
struct std_array_size<Array<T, N>> : std::integral_constant<std::size_t, N> {}; struct std_array_size<Array<T, N> > : boost::integral_constant<std::size_t, N> {};
} }
}} }}