forked from boostorg/function
TR1 conformance: derive from unary_function/binary_function
[SVN r34481]
This commit is contained in:
@ -11,6 +11,7 @@
|
|||||||
#define BOOST_FUNCTION_PROLOGUE_HPP
|
#define BOOST_FUNCTION_PROLOGUE_HPP
|
||||||
# include <cassert>
|
# include <cassert>
|
||||||
# include <algorithm>
|
# include <algorithm>
|
||||||
|
# include <functional> // unary_function, binary_function
|
||||||
# include <boost/throw_exception.hpp>
|
# include <boost/throw_exception.hpp>
|
||||||
# include <boost/config.hpp>
|
# include <boost/config.hpp>
|
||||||
# include <boost/function/function_base.hpp>
|
# include <boost/function/function_base.hpp>
|
||||||
|
@ -446,6 +446,17 @@ namespace boost {
|
|||||||
typename Allocator = BOOST_FUNCTION_DEFAULT_ALLOCATOR
|
typename Allocator = BOOST_FUNCTION_DEFAULT_ALLOCATOR
|
||||||
>
|
>
|
||||||
class BOOST_FUNCTION_FUNCTION : public function_base
|
class BOOST_FUNCTION_FUNCTION : public function_base
|
||||||
|
|
||||||
|
#if BOOST_FUNCTION_NUM_ARGS == 1
|
||||||
|
|
||||||
|
, public std::unary_function<T0,R>
|
||||||
|
|
||||||
|
#elif BOOST_FUNCTION_NUM_ARGS == 2
|
||||||
|
|
||||||
|
, public std::binary_function<T0,T1,R>
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
#ifndef BOOST_NO_VOID_RETURNS
|
#ifndef BOOST_NO_VOID_RETURNS
|
||||||
|
Reference in New Issue
Block a user