Update of /cvsroot/boost/boost/boost/fusion/sequence/container/list
In directory 
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21096/boost/fusion/sequence/container/list

Modified Files:
        cons.hpp 
Log Message:
Tweaks for VC7.1

Index: cons.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/fusion/sequence/container/list/cons.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cons.hpp    23 Aug 2006 02:37:18 -0000      1.2
+++ cons.hpp    10 Sep 2006 05:56:10 -0000      1.3
@@ -87,12 +87,17 @@
         template <typename Sequence>
         explicit cons(
             Sequence const& seq
+#if defined(BOOST_MSVC)
+// VC++ gets confused when RHS is a derived type. It fails to call
+// the copy ctor and attempts to call this templated constructor instead.
           , typename disable_if<
                 mpl::or_<
                     is_convertible<Sequence, cons> // use copy ctor instead
                   , is_convertible<Sequence, Car>  // use copy to car instead
                 > 
-            >::type* dummy = 0)
+            >::type* dummy = 0
+#endif
+        )
             : car(*fusion::begin(seq))
             , cdr(fusion::next(fusion::begin(seq)), mpl::true_()) {}
 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to