reduce the prerequisites of trait.hpp

the AssignableRefWrapper is not in use anymore...
by not pulling in wrapper.hpp, we avoid <functional>
This commit is contained in:
Fischlurch 2011-01-03 22:08:28 +01:00
parent c40ba74bc6
commit 62f9e84f2d
2 changed files with 1 additions and 5 deletions

View file

@ -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 <boost/type_traits/is_convertible.hpp>
#include <boost/type_traits/is_arithmetic.hpp>
@ -196,7 +195,6 @@ namespace meta {
typedef TY* pointer;
typedef TY& reference;
typedef TY value_type;
typedef value_type member_type;
};
template<typename TY>
@ -205,7 +203,6 @@ namespace meta {
typedef TY* pointer;
typedef TY& reference;
typedef TY value_type;
typedef pointer member_type;
};
template<typename TY>
@ -214,9 +211,7 @@ namespace meta {
typedef TY* pointer;
typedef TY& reference;
typedef TY value_type;
typedef lib::wrapper::AssignableRefWrapper<TY> member_type;
};
//////////////////////////////////////////TODO: member_type not needed anymore 12/09 -- obsolete? useful? keep it?

View file

@ -55,6 +55,7 @@
#include "lib/meta/trait.hpp"
#include <boost/utility/enable_if.hpp>
#include <tr1/functional>
#include <algorithm>