From 3264064074819ed42d1f4d6f9387e1dd54bf6ce8 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 19 Jul 2002 20:09:29 +0000 Subject: [PATCH] Removed some cruft Deprecated the 'set' methods [SVN r14538] --- include/boost/function.hpp | 10 ++++++---- include/boost/function/function_template.hpp | 6 ++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/include/boost/function.hpp b/include/boost/function.hpp index 64bd0c5..da7bc28 100644 --- a/include/boost/function.hpp +++ b/include/boost/function.hpp @@ -548,7 +548,6 @@ namespace boost { class get_function_impl { #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION - BOOST_STATIC_CONSTANT(bool, encoded_param = is_function::value); typedef function_traits traits; public: @@ -787,17 +786,20 @@ namespace boost { } template - 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); } diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index 0613cb4..db15bb0 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -322,7 +322,8 @@ namespace boost { } template - 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(*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;