Update of /cvsroot/boost/boost/boost/spirit/phoenix/stl/algorithm/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4310

Modified Files:
      Tag: SPIRIT_RC_1_8_5
        begin.hpp end.hpp 
Log Message:
VC7.1 workaround

Index: begin.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/boost/spirit/phoenix/stl/algorithm/detail/Attic/begin.hpp,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- begin.hpp   2 Dec 2006 23:16:29 -0000       1.1.2.2
+++ begin.hpp   3 Dec 2006 00:14:22 -0000       1.1.2.3
@@ -15,12 +15,21 @@
 
 namespace boost { namespace phoenix { namespace detail
 {
-    template<class R>
+    template <class R>
     typename range_result_iterator<R>::type
     begin_(R& r)
     {
         return boost::begin(r);
     }
+
+#if defined( BOOST_MSVC ) && (BOOST_MSVC < 1400) // VC7.1 workaround
+    template <class T, std::size_t N>
+    T* begin_(T (&r)[N])
+    {
+        return r;
+    }
+#endif
+
 }}}
 
 #endif

Index: end.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/boost/spirit/phoenix/stl/algorithm/detail/Attic/end.hpp,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- end.hpp     2 Dec 2006 23:16:29 -0000       1.1.2.2
+++ end.hpp     3 Dec 2006 00:14:22 -0000       1.1.2.3
@@ -21,6 +21,15 @@
     {
         return boost::end(r);
     }
+
+#if defined( BOOST_MSVC ) && (BOOST_MSVC < 1400) // VC7.1 workaround
+    template <class T, std::size_t N>
+    T* end_(T (&r)[N])
+    {
+        return r+N;
+    }
+#endif
+
 }}}
 
 #endif


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to