From 46e174935b122c0da4b51532a7f683a512eeaf65 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 15 Feb 2015 14:07:50 +0100 Subject: Moved class-based implementations into `detail` namespace * while class templates enable e.g. hiding implementation details they also require evaluation via `Eval` ** this clutters up the actual logic and is now hidden behind aliae that perform the evaluation --- src/function/apply.h | 8 ++++---- src/function/detail/apply.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/function') diff --git a/src/function/apply.h b/src/function/apply.h index f4de292..591fa8a 100644 --- a/src/function/apply.h +++ b/src/function/apply.h @@ -19,22 +19,22 @@ template < > struct Apply : Cond< Pair< - GreaterThan>, Size<2>>, + GreaterThan, Size<2>>, detail::apply_variadic >, Pair< - IsEqualValue>, Size<2>>, + IsEqualValue, Size<2>>, detail::apply_pair >, Pair< - IsEqualValue>, Size<1>>, + IsEqualValue, Size<1>>, detail::apply_single >, Pair< Boolean, detail::apply_none > ->::type { }; +> { }; } diff --git a/src/function/detail/apply.h b/src/function/detail/apply.h index da347f7..8d4ef6d 100644 --- a/src/function/detail/apply.h +++ b/src/function/detail/apply.h @@ -13,7 +13,7 @@ namespace detail { struct placeholder_tag { }; template -using is_placeholder = tav::Boolean< +using is_placeholder = Boolean< std::is_base_of::value >; @@ -33,13 +33,13 @@ template < int Index > struct resolve_placeholder> { - typedef Eval, Partials>> type; + typedef tav::Nth, Partials> type; }; template using count_placeholders = Count< is_placeholder, - Eval> + tav::List >; template < @@ -58,7 +58,7 @@ struct apply_variadic { template using function = Function< Eval>, + tav::List, Arguments >>... >; -- cgit v1.2.3