Update of /cvsroot/boost/boost/libs/spirit/phoenix/example/fundamental
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4005

Modified Files:
      Tag: SPIRIT_1_6
        sample10.cpp 
Log Message:
Added a couple of Borland related workarounds

Index: sample10.cpp
===================================================================
RCS file: 
/cvsroot/boost/boost/libs/spirit/phoenix/example/fundamental/sample10.cpp,v
retrieving revision 1.8.2.4
retrieving revision 1.8.2.5
diff -u -d -r1.8.2.4 -r1.8.2.5
--- sample10.cpp        25 Nov 2004 11:14:54 -0000      1.8.2.4
+++ sample10.cpp        26 Feb 2007 23:58:06 -0000      1.8.2.5
@@ -18,6 +18,8 @@
 #include <boost/spirit/phoenix/statements.hpp>
 #include <boost/spirit/phoenix/functions.hpp>
 
+#include <boost/detail/workaround.hpp>
+
 namespace phoenix {
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -296,7 +298,11 @@
     typename impl::make_local_function_actor<N, Parent, T0>::type
     operator()(T0 const& _0) const
     {
+#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
         return impl::make_local_function_actor<N, Parent, 
T0>::composite_type(_0);
+#else
+        return typename impl::make_local_function_actor<N, Parent, 
T0>::composite_type(_0);
+#endif
     }
 
     template <int PIndex>
@@ -480,7 +486,7 @@
 {
     int _10 = 10;
 
-#ifndef __BORLANDC__
+#if ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
 
     context<nil_t>
     (


-------------------------------------------------------------------------
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