Chris@16: // Copyright Frank Mori Hess 2007-2009 Chris@16: // Chris@16: // Use, modification and Chris@16: // distribution is subject to the Boost Software License, Version Chris@16: // 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // For more information, see http://www.boost.org Chris@16: Chris@16: #ifndef BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP Chris@16: #define BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: namespace signals2 Chris@16: { Chris@16: namespace detail Chris@16: { Chris@16: template Chris@16: ResultSlot replace_slot_function(const SlotIn &slot_in, const SlotFunction &fun) Chris@16: { Chris@16: ResultSlot slot(fun); Chris@16: slot.track(slot_in); Chris@16: return slot; Chris@16: } Chris@16: } // namespace detail Chris@16: } // namespace signals2 Chris@16: } // namespace boost Chris@16: Chris@16: #endif // BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP