mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
fix container traits
This commit is contained in:
parent
6e962b0ccc
commit
7b5a397596
2 changed files with 6 additions and 7 deletions
|
@ -30,7 +30,7 @@ namespace sprout {
|
|||
//
|
||||
template<typename Result, typename sprout::container_traits<Result>::difference_type RelativeSize>
|
||||
struct resized_relative
|
||||
: public sprout::identity<
|
||||
: public std::decay<
|
||||
typename sprout::container_transform_traits<Result>
|
||||
::template rebind_size<sprout::container_traits<Result>::static_size + RelativeSize>::type
|
||||
>
|
||||
|
|
|
@ -79,23 +79,22 @@ namespace sprout {
|
|||
//
|
||||
template<typename Container>
|
||||
struct container_transform_traits<sprout::sub_array<Container> > {
|
||||
private:
|
||||
typedef typename sprout::sub_array<Container>::internal_type internal_type;
|
||||
typedef typename sprout::container_construct_traits<internal_type>::copied_type internal_copied_type;
|
||||
public:
|
||||
template<typename sprout::container_traits<sprout::sub_array<Container> >::size_type Size>
|
||||
struct rebind_size {
|
||||
public:
|
||||
typedef sprout::sub_array<
|
||||
typename sprout::container_transform_traits<
|
||||
typename sprout::container_construct_traits<Container>::copied_type
|
||||
>::template rebind_size<Size>::type
|
||||
typename sprout::container_transform_traits<internal_copied_type>::template rebind_size<Size>::type
|
||||
> type;
|
||||
};
|
||||
template<typename Type>
|
||||
struct rebind_type {
|
||||
public:
|
||||
typedef sprout::sub_array<
|
||||
typename sprout::container_transform_traits<
|
||||
typename sprout::container_construct_traits<Container>::copied_type
|
||||
>::template rebind_type<Type>::type
|
||||
typename sprout::container_transform_traits<internal_copied_type>::template rebind_type<Type>::type
|
||||
> type;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue