aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/higher
diff options
context:
space:
mode:
Diffstat (limited to 'src/list/operation/higher')
-rw-r--r--src/list/operation/higher/misc.h5
-rw-r--r--src/list/operation/higher/query.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/src/list/operation/higher/misc.h b/src/list/operation/higher/misc.h
index 1eacaaa..feec7de 100644
--- a/src/list/operation/higher/misc.h
+++ b/src/list/operation/higher/misc.h
@@ -17,7 +17,10 @@ class Map {
typename Previous
>
struct function_wrapper {
- typedef Cons<Function<Current>, Previous> type;
+ typedef Cons<
+ typename Function<Current>::type,
+ Previous
+ > type;
};
public:
diff --git a/src/list/operation/higher/query.h b/src/list/operation/higher/query.h
index 34d05cb..29f65dc 100644
--- a/src/list/operation/higher/query.h
+++ b/src/list/operation/higher/query.h
@@ -2,6 +2,7 @@
#define TYPEASVALUE_SRC_LIST_OPERATION_HIGHER_QUERY_H_
#include "fold.h"
+#include "misc.h"
#include "operation/logic.h"
namespace tav {