From 62f9e84f2d4127cea0e11e0d783076d58cdb8a23 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Mon, 3 Jan 2011 22:08:28 +0100 Subject: [PATCH] reduce the prerequisites of trait.hpp the AssignableRefWrapper is not in use anymore... by not pulling in wrapper.hpp, we avoid --- src/lib/meta/trait.hpp | 5 ----- src/lib/util-foreach.hpp | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/meta/trait.hpp b/src/lib/meta/trait.hpp index 84250866f..ee77db289 100644 --- a/src/lib/meta/trait.hpp +++ b/src/lib/meta/trait.hpp @@ -27,7 +27,6 @@ #include "lib/meta/util.hpp" #include "lib/meta/duck-detector.hpp" -#include "lib/wrapper.hpp" ////////////////////////TODO only because of AssignableRefWrapper -- can we get rid of this import? #include #include @@ -196,7 +195,6 @@ namespace meta { typedef TY* pointer; typedef TY& reference; typedef TY value_type; - typedef value_type member_type; }; template @@ -205,7 +203,6 @@ namespace meta { typedef TY* pointer; typedef TY& reference; typedef TY value_type; - typedef pointer member_type; }; template @@ -214,9 +211,7 @@ namespace meta { typedef TY* pointer; typedef TY& reference; typedef TY value_type; - typedef lib::wrapper::AssignableRefWrapper member_type; }; - //////////////////////////////////////////TODO: member_type not needed anymore 12/09 -- obsolete? useful? keep it? diff --git a/src/lib/util-foreach.hpp b/src/lib/util-foreach.hpp index 9270c3a06..8c0791c65 100644 --- a/src/lib/util-foreach.hpp +++ b/src/lib/util-foreach.hpp @@ -55,6 +55,7 @@ #include "lib/meta/trait.hpp" #include +#include #include