$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r52654 - trunk/boost/signals2/detail
From: fmhess_at_[hidden]
Date: 2009-04-28 14:17:24
Author: fmhess
Date: 2009-04-28 14:17:24 EDT (Tue, 28 Apr 2009)
New Revision: 52654
URL: http://svn.boost.org/trac/boost/changeset/52654
Log:
Added some equality comparison operators for stack_allocator.
Text files modified: 
   trunk/boost/signals2/detail/stack_allocator.hpp |    18 ++++++++++++++++++                      
   1 files changed, 18 insertions(+), 0 deletions(-)
Modified: trunk/boost/signals2/detail/stack_allocator.hpp
==============================================================================
--- trunk/boost/signals2/detail/stack_allocator.hpp	(original)
+++ trunk/boost/signals2/detail/stack_allocator.hpp	2009-04-28 14:17:24 EDT (Tue, 28 Apr 2009)
@@ -84,6 +84,24 @@
             base_class::deallocate(p, n);
           }
         }
+        bool operator==(const stack_allocator &other)
+        {
+          return _storage == other._storage;
+        }
+        bool operator!=(const stack_allocator &other)
+        {
+          return _storage != other._storage;
+        }
+        template<typename U, std::size_t n>
+          bool operator==(const stack_allocator<U, n> &other)
+        {
+          return _storage == 0 && other._storage == 0;
+        }
+        template<typename U, std::size_t n>
+          bool operator!=(const stack_allocator<U, n> &other)
+        {
+          return _storage != 0 || other._storage != 0;
+        }
       private:
         stack_storage<T, n_stack_elements> *_storage;
       };