mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 03:57:36 +02:00
Fixed compile error with std::array
libc++ enables std::array in c++98 mode, but <type_traits> doesn't.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
#define BOOST_FUSION_STD_ARRAY_ARRAY_SIZE_01062013_1700
|
||||
|
||||
#include <cstddef>
|
||||
#include <type_traits>
|
||||
#include <boost/type_traits/integral_constant.hpp>
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
@ -18,7 +18,7 @@ namespace boost { namespace fusion
|
||||
struct std_array_size;
|
||||
|
||||
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> {};
|
||||
}
|
||||
}}
|
||||
|
||||
|
Reference in New Issue
Block a user