Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56802 - trunk/boost/signals2/detail
From: fmhess_at_[hidden]
Date: 2009-10-13 17:42:21


Author: fmhess
Date: 2009-10-13 17:42:20 EDT (Tue, 13 Oct 2009)
New Revision: 56802
URL: http://svn.boost.org/trac/boost/changeset/56802

Log:
Make sure we always use GroupCompare template parameter

Text files modified:
   trunk/boost/signals2/detail/slot_groups.hpp | 10 ++++++++--
   1 files changed, 8 insertions(+), 2 deletions(-)

Modified: trunk/boost/signals2/detail/slot_groups.hpp
==============================================================================
--- trunk/boost/signals2/detail/slot_groups.hpp (original)
+++ trunk/boost/signals2/detail/slot_groups.hpp 2009-10-13 17:42:20 EDT (Tue, 13 Oct 2009)
@@ -46,16 +46,22 @@
       template<typename Group, typename GroupCompare, typename ValueType>
       class grouped_list
       {
+ public:
+ typedef group_key_less<Group, GroupCompare> group_key_compare_type;
       private:
         typedef std::list<ValueType> list_type;
- typedef std::map<typename group_key<Group>::type, typename list_type::iterator> map_type;
+ typedef std::map
+ <
+ typename group_key<Group>::type,
+ typename list_type::iterator,
+ group_key_compare_type
+ > map_type;
         typedef typename map_type::iterator map_iterator;
         typedef typename map_type::const_iterator const_map_iterator;
       public:
         typedef typename list_type::iterator iterator;
         typedef typename list_type::const_iterator const_iterator;
         typedef typename group_key<Group>::type group_key_type;
- typedef group_key_less<Group, GroupCompare> group_key_compare_type;
 
         grouped_list(const group_key_compare_type &group_key_compare):
           _group_key_compare(group_key_compare)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk