Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76066 - trunk/boost/heap/detail
From: tim_at_[hidden]
Date: 2011-12-19 11:27:15


Author: timblechmann
Date: 2011-12-19 11:27:14 EST (Mon, 19 Dec 2011)
New Revision: 76066
URL: http://svn.boost.org/trac/boost/changeset/76066

Log:
heap: fix type conversion warning

Text files modified:
   trunk/boost/heap/detail/heap_node.hpp | 2 +-
   trunk/boost/heap/detail/stable_heap.hpp | 4 ++--
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/heap/detail/heap_node.hpp
==============================================================================
--- trunk/boost/heap/detail/heap_node.hpp (original)
+++ trunk/boost/heap/detail/heap_node.hpp 2011-12-19 11:27:14 EST (Mon, 19 Dec 2011)
@@ -363,4 +363,4 @@
 } /* namespace boost */
 
 #undef BOOST_HEAP_ASSERT
-#endif /* BOOST_HEAP_DETAIL_HEAP_NODE_HPP */
\ No newline at end of file
+#endif /* BOOST_HEAP_DETAIL_HEAP_NODE_HPP */

Modified: trunk/boost/heap/detail/stable_heap.hpp
==============================================================================
--- trunk/boost/heap/detail/stable_heap.hpp (original)
+++ trunk/boost/heap/detail/stable_heap.hpp 2011-12-19 11:27:14 EST (Mon, 19 Dec 2011)
@@ -297,7 +297,7 @@
 
     internal_type make_node(T const & val)
     {
- std::size_t count = ++counter_;
+ stability_counter_type count = ++counter_;
         if (counter_ == std::numeric_limits<stability_counter_type>::max())
             BOOST_THROW_EXCEPTION(std::runtime_error("boost::heap counter overflow"));
         return std::make_pair(val, count);
@@ -307,7 +307,7 @@
     template <class... Args>
     internal_type make_node(Args&&... args)
     {
- std::size_t count = ++counter_;
+ stability_counter_type count = ++counter_;
         if (counter_ == std::numeric_limits<stability_counter_type>::max())
             BOOST_THROW_EXCEPTION(std::runtime_error("boost::heap counter overflow"));
         return std::make_pair(std::forward<T>(args)..., count);


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