From 55bfeb646f09ef3ce0bc520eb065985a5d2ff8ca Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Sun, 26 Aug 2001 19:55:49 +0000 Subject: [PATCH] removed tie() and class tied [SVN r10938] --- include/boost/utility.hpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/include/boost/utility.hpp b/include/boost/utility.hpp index f1a6389..fa99b9a 100644 --- a/include/boost/utility.hpp +++ b/include/boost/utility.hpp @@ -87,31 +87,6 @@ namespace boost const noncopyable& operator=( const noncopyable& ); }; // noncopyable -// class tied -------------------------------------------------------// - - // A helper for conveniently assigning the two values from a pair - // into separate variables. The idea for this comes from Jaakko J„rvi's - // Binder/Lambda Library. - - // Constributed by Jeremy Siek - - template - class tied { - public: - inline tied(A& a, B& b) : _a(a), _b(b) { } - template - inline tied& operator=(const std::pair& p) { - _a = p.first; - _b = p.second; - return *this; - } - protected: - A& _a; - B& _b; - }; - - template - inline tied tie(A& a, B& b) { return tied(a, b); } } // namespace boost