patches/boost-1.48.0-foreach.patch
author jurikm
Fri, 13 Jan 2012 19:39:15 +0000
changeset 8117 cf1f7dced99b
permissions -rw-r--r--
base-specs/boost.spec: fix import issue with 1.48.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8117
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     1
Index: trunk/boost/foreach_fwd.hpp
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     2
===================================================================
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     3
--- trunk/boost/foreach_fwd.hpp	(revision 62661)
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     4
+++ trunk/boost/foreach_fwd.hpp	(revision 75540)
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     5
@@ -15,4 +15,6 @@
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     6
 #define BOOST_FOREACH_FWD_HPP
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     7
 
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     8
+#include <utility> // for std::pair
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
     9
+
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    10
 // This must be at global scope, hence the uglified name
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    11
 enum boost_foreach_argument_dependent_lookup_hack
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    12
@@ -26,4 +28,7 @@
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    13
 namespace foreach
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    14
 {
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    15
+    template<typename T>
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    16
+    std::pair<T, T> in_range(T begin, T end);
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    17
+
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    18
     ///////////////////////////////////////////////////////////////////////////////
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    19
     // boost::foreach::tag
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    20
@@ -47,4 +52,22 @@
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    21
 } // namespace foreach
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    22
 
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    23
+// Workaround for unfortunate https://svn.boost.org/trac/boost/ticket/6131
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    24
+namespace BOOST_FOREACH
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    25
+{
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    26
+    using foreach::in_range;
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    27
+    using foreach::tag;
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    28
+
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    29
+    template<typename T>
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    30
+    struct is_lightweight_proxy
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    31
+      : foreach::is_lightweight_proxy<T>
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    32
+    {};
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    33
+
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    34
+    template<typename T>
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    35
+    struct is_noncopyable
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    36
+      : foreach::is_noncopyable<T>
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    37
+    {};
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    38
+
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    39
+} // namespace BOOST_FOREACH
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    40
+
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    41
 } // namespace boost
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    42
 
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    43
Index: trunk/boost/foreach.hpp
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    44
===================================================================
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    45
--- trunk/boost/foreach.hpp	(revision 75077)
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    46
+++ trunk/boost/foreach.hpp	(revision 75540)
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    47
@@ -166,5 +166,5 @@
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    48
 //   at the global namespace for your type.
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    49
 template<typename T>
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    50
-inline boost::foreach::is_lightweight_proxy<T> *
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    51
+inline boost::BOOST_FOREACH::is_lightweight_proxy<T> *
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    52
 boost_foreach_is_lightweight_proxy(T *&, BOOST_FOREACH_TAG_DEFAULT) { return 0; }
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    53
 
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    54
@@ -191,5 +191,5 @@
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    55
 //   at the global namespace for your type.
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    56
 template<typename T>
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    57
-inline boost::foreach::is_noncopyable<T> *
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    58
+inline boost::BOOST_FOREACH::is_noncopyable<T> *
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    59
 boost_foreach_is_noncopyable(T *&, BOOST_FOREACH_TAG_DEFAULT) { return 0; }
cf1f7dced99b base-specs/boost.spec: fix import issue with 1.48.0
jurikm
parents:
diff changeset
    60