summaryrefslogtreecommitdiff
path: root/boost/bimap/relation
diff options
context:
space:
mode:
Diffstat (limited to 'boost/bimap/relation')
-rw-r--r--boost/bimap/relation/support/data_extractor.hpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/boost/bimap/relation/support/data_extractor.hpp b/boost/bimap/relation/support/data_extractor.hpp
index 10ec29862e..a7e7f32d5d 100644
--- a/boost/bimap/relation/support/data_extractor.hpp
+++ b/boost/bimap/relation/support/data_extractor.hpp
@@ -19,7 +19,6 @@
#include <boost/config.hpp>
#include <boost/bimap/relation/detail/metadata_access_builder.hpp>
-#include <functional>
/** \struct boost::bimaps::relation::support::data_extractor
@@ -39,9 +38,11 @@ template< class Tag, class Relation >
struct data_extractor_implementation;
template< class Relation >
-struct data_extractor_implementation< member_at::left, Relation > :
- public std::unary_function<Relation,BOOST_DEDUCED_TYPENAME Relation::left_value_type>
+struct data_extractor_implementation< member_at::left, Relation >
{
+ typedef Relation argument_type;
+ typedef BOOST_DEDUCED_TYPENAME Relation::left_value_type result_type;
+
BOOST_DEDUCED_TYPENAME Relation::left_value_type const &
operator()(Relation const & rel) const
{
@@ -56,9 +57,11 @@ struct data_extractor_implementation< member_at::left, Relation > :
};
template< class Relation >
-struct data_extractor_implementation< member_at::right, Relation > :
- public std::unary_function<Relation,BOOST_DEDUCED_TYPENAME Relation::right_value_type>
+struct data_extractor_implementation< member_at::right, Relation >
{
+ typedef Relation argument_type;
+ typedef BOOST_DEDUCED_TYPENAME Relation::right_value_type result_type;
+
BOOST_DEDUCED_TYPENAME Relation::right_value_type const &
operator()(Relation const & rel) const
{