fix forward_clist

This commit is contained in:
bolero-MURAKAMI 2013-12-03 00:36:04 +09:00
parent eb2918d065
commit e6b504f94b
2 changed files with 3 additions and 25 deletions

View file

@ -246,13 +246,13 @@ namespace sprout {
if (next.is_initialized()) {
next->unlink_all();
{
item_holder_type temp;
item_holder_type temp = item_holder_type();
temp.swap(next);
}
}
}
SPROUT_CXX14_CONSTEXPR void unlink() {
item_holder_type temp;
item_holder_type temp = item_holder_type();
temp.swap(next);
}
public:
@ -260,8 +260,7 @@ namespace sprout {
: val(), next()
{}
SPROUT_CONSTEXPR item(typename holder_type::argument_type p)
: val(p)
, next()
: val(p), next()
{}
SPROUT_CONSTEXPR item(typename holder_type::movable_argument_type p)
: val(sprout::move(p)), next()

View file

@ -36,23 +36,6 @@ namespace sprout {
// pack_get
//
namespace detail {
// template<
// std::size_t I, typename R, typename Head, typename... Tail,
// typename sprout::enabler_if<I == 0>::type = sprout::enabler
// >
// inline SPROUT_CONSTEXPR R
// pack_get_impl(Head&& head, Tail&&...) {
// return sprout::forward<Head>(head);
// }
// template<
// std::size_t I, typename R, typename Head, typename... Tail,
// typename sprout::enabler_if<I != 0>::type = sprout::enabler
// >
// inline SPROUT_CONSTEXPR R
// pack_get_impl(Head&&, Tail&&... tail) {
// return sprout::detail::pack_get_impl<I - 1, R>(sprout::forward<Tail>(tail)...);
// }
template<typename Tup>
struct pack_get_helper;
template<typename... Args>
@ -70,10 +53,6 @@ namespace sprout {
return sprout::detail::pack_get_helper<
typename sprout::types::detail::tuple_take<I, sprout::types::type_tuple<Args...> >::type
>::eval(sprout::forward<Args>(args)...);
// return sprout::detail::pack_get_impl<
// I,
// typename sprout::pack_element<I, Args&&...>::type
// >(sprout::forward<Args>(args)...);
}
} // namespace sprout