From f81cd736e00c28cf24412a4099bae08ff2e6c493 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 16 Feb 2015 17:35:38 +0100 Subject: Unified `Iota` and `MakeList` using nested structure generator * `detail::generate_nested_structure` offers a higher order nested structure constructor for procedural list generation * renamed `Fold` implementation details --- src/function/detail/apply.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/function/detail') diff --git a/src/function/detail/apply.h b/src/function/detail/apply.h index 3df80ef..aca0af4 100644 --- a/src/function/detail/apply.h +++ b/src/function/detail/apply.h @@ -13,17 +13,12 @@ namespace detail { struct placeholder_tag { }; template -using is_placeholder = Boolean< - std::is_base_of::value ->; +using is_placeholder = Eval>; template struct placeholder : placeholder_tag { }; -template < - typename Partials, - typename Argument -> +template struct resolve_placeholder { typedef Argument type; }; @@ -33,7 +28,7 @@ template < int Index > struct resolve_placeholder> { - typedef tav::Nth, Partials> type; + typedef Nth, Partials> type; }; template -- cgit v1.2.3