Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83269 - trunk/boost/heap/detail
From: tim_at_[hidden]
Date: 2013-03-03 06:33:16


Author: timblechmann
Date: 2013-03-03 06:33:15 EST (Sun, 03 Mar 2013)
New Revision: 83269
URL: http://svn.boost.org/trac/boost/changeset/83269

Log:
heap: compile fix for c++03
Text files modified:
   trunk/boost/heap/detail/mutable_heap.hpp | 1 -
   trunk/boost/heap/detail/stable_heap.hpp | 6 ++++++
   2 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/heap/detail/mutable_heap.hpp
==============================================================================
--- trunk/boost/heap/detail/mutable_heap.hpp (original)
+++ trunk/boost/heap/detail/mutable_heap.hpp 2013-03-03 06:33:15 EST (Sun, 03 Mar 2013)
@@ -16,7 +16,6 @@
 #include <list>
 #include <utility>
 
-#include <boost/noncopyable.hpp>
 #include <boost/iterator/iterator_adaptor.hpp>
 #include <boost/heap/detail/ordered_adaptor_iterator.hpp>
 

Modified: trunk/boost/heap/detail/stable_heap.hpp
==============================================================================
--- trunk/boost/heap/detail/stable_heap.hpp (original)
+++ trunk/boost/heap/detail/stable_heap.hpp 2013-03-03 06:33:15 EST (Sun, 03 Mar 2013)
@@ -294,10 +294,16 @@
 
     struct internal_type
     {
+#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
         template <class ...Args>
         internal_type(stability_counter_type cnt, Args && ... args):
             first(std::forward<Args>(args)...), second(cnt)
         {}
+#endif
+
+ internal_type(stability_counter_type const & cnt, T const & value):
+ first(value), second(cnt)
+ {}
 
         T first;
         stability_counter_type second;


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