mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +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
|
@ -169,14 +169,14 @@ namespace sprout {
|
|||
namespace tuples {
|
||||
namespace detail {
|
||||
template<std::size_t I, typename T>
|
||||
struct tuple_element_impl;
|
||||
class tuple_element_impl;
|
||||
template<typename T1, typename T2>
|
||||
struct tuple_element_impl<0, sprout::pair<T1, T2> > {
|
||||
class tuple_element_impl<0, sprout::pair<T1, T2> > {
|
||||
public:
|
||||
typedef T1 type;
|
||||
};
|
||||
template<typename T1, typename T2>
|
||||
struct tuple_element_impl<1, sprout::pair<T1, T2> > {
|
||||
class tuple_element_impl<1, sprout::pair<T1, T2> > {
|
||||
public:
|
||||
typedef T2 type;
|
||||
};
|
||||
|
@ -189,7 +189,7 @@ namespace std {
|
|||
// tuple_size
|
||||
//
|
||||
template<typename T1, typename T2>
|
||||
struct tuple_size<sprout::pair<T1, T2> >
|
||||
class tuple_size<sprout::pair<T1, T2> >
|
||||
: public std::integral_constant<std::size_t, 2>
|
||||
{};
|
||||
|
||||
|
@ -197,7 +197,7 @@ namespace std {
|
|||
// tuple_element
|
||||
//
|
||||
template<std::size_t I, typename T1, typename T2>
|
||||
struct tuple_element<I, sprout::pair<T1, T2> >
|
||||
class tuple_element<I, sprout::pair<T1, T2> >
|
||||
: public sprout::tuples::detail::tuple_element_impl<I, sprout::pair<T1, T2> >
|
||||
{};
|
||||
} // namespace std
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue