Remove BOOST_FUNCTION_TARGET_FIX workarounds

This commit is contained in:
Peter Dimov
2024-01-27 06:46:26 +02:00
parent f86ddb0bb9
commit 18e8bf458c
2 changed files with 6 additions and 9 deletions

View File

@@ -697,7 +697,7 @@ namespace boost {
// MSVC chokes if the following two constructors are collapsed into
// one with a default parameter.
template<typename Functor>
BOOST_FUNCTION_FUNCTION(Functor BOOST_FUNCTION_TARGET_FIX(const &) f
BOOST_FUNCTION_FUNCTION(Functor f
#ifndef BOOST_NO_SFINAE
,typename boost::enable_if_<
!(is_integral<Functor>::value),
@@ -709,7 +709,7 @@ namespace boost {
this->assign_to(f);
}
template<typename Functor,typename Allocator>
BOOST_FUNCTION_FUNCTION(Functor BOOST_FUNCTION_TARGET_FIX(const &) f, Allocator a
BOOST_FUNCTION_FUNCTION(Functor f, Allocator a
#ifndef BOOST_NO_SFINAE
,typename boost::enable_if_<
!(is_integral<Functor>::value),
@@ -766,7 +766,7 @@ namespace boost {
#else
BOOST_FUNCTION_FUNCTION&
#endif
operator=(Functor BOOST_FUNCTION_TARGET_FIX(const &) f)
operator=(Functor f)
{
this->clear();
BOOST_TRY {
@@ -779,7 +779,7 @@ namespace boost {
return *this;
}
template<typename Functor,typename Allocator>
void assign(Functor BOOST_FUNCTION_TARGET_FIX(const &) f, Allocator a)
void assign(Functor f, Allocator a)
{
this->clear();
BOOST_TRY{