mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-02 14:04:20 +00:00
fix for clang 3.2
This commit is contained in:
parent
3a999dd70c
commit
b67695ec6b
28 changed files with 133 additions and 75 deletions
|
@ -239,8 +239,14 @@ namespace sprout {
|
|||
// make_common_array
|
||||
//
|
||||
template<typename... Types>
|
||||
inline SPROUT_CONSTEXPR sprout::array<typename std::common_type<typename std::decay<Types>::type...>::type, sizeof...(Types)> make_common_array(Types&&... args) {
|
||||
return sprout::array<typename std::common_type<typename std::decay<Types>::type...>::type, sizeof...(Types)>{{sprout::forward<Types>(args)...}};
|
||||
inline SPROUT_CONSTEXPR sprout::array<
|
||||
typename std::decay<typename std::common_type<typename std::decay<Types>::type...>::type>::type,
|
||||
sizeof...(Types)
|
||||
> make_common_array(Types&&... args) {
|
||||
return sprout::array<
|
||||
typename std::decay<typename std::common_type<typename std::decay<Types>::type...>::type>::type,
|
||||
sizeof...(Types)
|
||||
>{{sprout::forward<Types>(args)...}};
|
||||
}
|
||||
|
||||
namespace detail {
|
||||
|
@ -287,7 +293,7 @@ namespace std {
|
|||
// tuple_size
|
||||
//
|
||||
template<typename T, std::size_t N>
|
||||
struct tuple_size<sprout::array<T, N> >
|
||||
class tuple_size<sprout::array<T, N> >
|
||||
: public std::integral_constant<std::size_t, N>
|
||||
{};
|
||||
|
||||
|
@ -295,7 +301,7 @@ namespace std {
|
|||
// tuple_element
|
||||
//
|
||||
template<std::size_t I, typename T, std::size_t N>
|
||||
struct tuple_element<I, sprout::array<T, N> > {
|
||||
class tuple_element<I, sprout::array<T, N> > {
|
||||
public:
|
||||
static_assert(I < N, "tuple_element<>: index out of range");
|
||||
typedef T type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue