Update of /cvsroot/boost/boost/boost/parameter
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27715

Modified Files:
        preprocessor.hpp 
Log Message:
Fix for Borland.


Index: preprocessor.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/parameter/preprocessor.hpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- preprocessor.hpp    5 Jun 2006 10:35:52 -0000       1.12
+++ preprocessor.hpp    26 Jul 2006 22:55:25 -0000      1.13
@@ -110,9 +110,22 @@
 
 }}} // namespace boost::parameter::aux
 
+# if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
+// From Paul Mensonides
+#  define BOOST_PARAMETER_IS_NULLARY(x) \
+    BOOST_PP_SPLIT(1, BOOST_PARAMETER_IS_NULLARY_C x BOOST_PP_COMMA() 0) \
+    /**/
+#  define BOOST_PARAMETER_IS_NULLARY_C() \
+    ~, 1 BOOST_PP_RPAREN() \
+    BOOST_PP_TUPLE_EAT(2) BOOST_PP_LPAREN() ~ \
+    /**/
+# else
+#  define BOOST_PARAMETER_IS_NULLARY(x) BOOST_PP_IS_NULLARY(x)
+# endif
+
 # define BOOST_PARAMETER_MEMBER_FUNCTION_CHECK_STATIC_static ()
 # define BOOST_PARAMETER_MEMBER_FUNCTION_IS_STATIC(name) \
-    BOOST_PP_IS_NULLARY( \
+    BOOST_PARAMETER_IS_NULLARY( \
         BOOST_PP_CAT(BOOST_PARAMETER_MEMBER_FUNCTION_CHECK_STATIC_,name) \
     )
 


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