From 9db8577d165f73e77c50dec47a09c373d12436c2 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 23 Jul 2002 21:57:57 +0000 Subject: [PATCH] Removed all of the deprecated parameters and made them variables [SVN r14578] --- include/boost/function.hpp | 12 ++++++------ include/boost/function/function_template.hpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/boost/function.hpp b/include/boost/function.hpp index da7bc28..608ef99 100644 --- a/include/boost/function.hpp +++ b/include/boost/function.hpp @@ -786,21 +786,21 @@ namespace boost { } template - void set(Functor BOOST_FUNCTION_TARGET_FIX(const &) f, - int deprecated = 0) + void set(Functor BOOST_FUNCTION_TARGET_FIX(const &) f) { + int deprecated; self_type(f).swap(*this); } - void set(const base_type& f, - int deprecated = 0) + void set(const base_type& f) { + int deprecated; self_type(f).swap(*this); } - void set(const self_type& f, - int deprecated = 0) + void set(const self_type& f) { + int deprecated; self_type(f).swap(*this); } }; diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index 3a64705..e7b2e6e 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -322,9 +322,9 @@ namespace boost { } template - void set(Functor BOOST_FUNCTION_TARGET_FIX(const &) f, - int deprecated = 0) + void set(Functor BOOST_FUNCTION_TARGET_FIX(const &) f) { + int deprecated; self_type(f, static_cast(*this)).swap(*this); }