Update of /cvsroot/boost/boost/boost/fusion/functional/adapter
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8859

Modified Files:
        unfused_typed.hpp 
Log Message:
adds MSVC workaround


Index: unfused_typed.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/boost/fusion/functional/adapter/unfused_typed.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- unfused_typed.hpp   15 Feb 2007 22:41:45 -0000      1.1
+++ unfused_typed.hpp   18 Feb 2007 00:42:14 -0000      1.2
@@ -16,6 +16,9 @@
 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
 #include <boost/preprocessor/facilities/intercept.hpp>
 
+#include <boost/config.hpp>
+#include <boost/detail/workaround.hpp>
+
 #include <boost/type_traits/remove_reference.hpp>
 
 #include <boost/fusion/support/detail/access.hpp>
@@ -29,6 +32,7 @@
 #include <boost/fusion/functional/adapter/detail/has_type.hpp>
 #include <boost/fusion/functional/adapter/detail/nullary_call_base.hpp>
 
+
 namespace boost { namespace fusion
 {
 
@@ -170,12 +174,15 @@
                 return static_cast<Derived const 
*>(this)->fnc_transformed(arg);
             }
 
+#if !BOOST_WORKAROUND(BOOST_MSVC, < 1400) \
+    || BOOST_FUSION_UNFUSED_TYPED_MAX_ARITY <= 4
             inline typename Function::template result<arg_vector_t>::type 
             operator()(BOOST_PP_ENUM(N,M,arg_vector_t)) 
             {
                 arg_vector_t arg(BOOST_PP_ENUM_PARAMS(N,a));
                 return static_cast<Derived *>(this)->fnc_transformed(arg);
             }
+#endif
 
 #undef M
         };


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