mirror of
https://github.com/boostorg/function.git
synced 2025-07-23 01:17:14 +02:00
Removed some cruft
Deprecated the 'set' methods [SVN r14538]
This commit is contained in:
@ -548,7 +548,6 @@ namespace boost {
|
||||
class get_function_impl
|
||||
{
|
||||
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
BOOST_STATIC_CONSTANT(bool, encoded_param = is_function<InR>::value);
|
||||
typedef function_traits<InR*> traits;
|
||||
public:
|
||||
|
||||
@ -787,17 +786,20 @@ namespace boost {
|
||||
}
|
||||
|
||||
template<typename Functor>
|
||||
void set(Functor BOOST_FUNCTION_TARGET_FIX(const &) f)
|
||||
void set(Functor BOOST_FUNCTION_TARGET_FIX(const &) f,
|
||||
int deprecated = 0)
|
||||
{
|
||||
self_type(f).swap(*this);
|
||||
}
|
||||
|
||||
void set(const base_type& f)
|
||||
void set(const base_type& f,
|
||||
int deprecated = 0)
|
||||
{
|
||||
self_type(f).swap(*this);
|
||||
}
|
||||
|
||||
void set(const self_type& f)
|
||||
void set(const self_type& f,
|
||||
int deprecated = 0)
|
||||
{
|
||||
self_type(f).swap(*this);
|
||||
}
|
||||
|
@ -322,7 +322,8 @@ namespace boost {
|
||||
}
|
||||
|
||||
template<typename Functor>
|
||||
void set(Functor BOOST_FUNCTION_TARGET_FIX(const &) f)
|
||||
void set(Functor BOOST_FUNCTION_TARGET_FIX(const &) f,
|
||||
int deprecated = 0)
|
||||
{
|
||||
self_type(f, static_cast<const Mixin&>(*this)).swap(*this);
|
||||
}
|
||||
@ -338,7 +339,8 @@ namespace boost {
|
||||
}
|
||||
|
||||
// Assignment from another BOOST_FUNCTION_FUNCTION
|
||||
void set(const BOOST_FUNCTION_FUNCTION& f)
|
||||
void set(const BOOST_FUNCTION_FUNCTION& f,
|
||||
int deprecated = 0)
|
||||
{
|
||||
if (&f == this)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user