Update of /cvsroot/boost/boost/boost/concept/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8095/concept/detail

Modified Files:
        concept_def.hpp 
Log Message:
Deal with GCC problems in updated concepts library

Index: concept_def.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/concept/detail/concept_def.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- concept_def.hpp     1 May 2006 19:45:04 -0000       1.2
+++ concept_def.hpp     27 Jun 2006 15:01:14 -0000      1.3
@@ -15,19 +15,35 @@
 //
 // Also defines an equivalent SomeNameConcept for backward compatibility.
 // Maybe in the next release we can kill off the "Concept" suffix for good.
+#if BOOST_WORKAROUND(__GNUC__, <= 3)
 # define BOOST_concept(name, params)                                           
 \
     template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) >      
 \
-    struct name; /* forward decl */                                            
 \
+    struct name; /* forward declaration */                                     
 \
+                                                                               
 \
+    template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) >      
 \
+    struct BOOST_PP_CAT(name,Concept)                                          
 \
+      : name< BOOST_PP_SEQ_ENUM(params) >                                      
 \
+    {                                                                          
 \
+        /* at least 2.96 and 3.4.3 both need this */                           
 \
+        BOOST_PP_CAT(name,Concept)();                                          
 \
+    };                                                                         
 \
+                                                                               
 \
+    template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) >      
 \
+    struct name                                                                
+#else
+# define BOOST_concept(name, params)                                           
 \
+    template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) >      
 \
+    struct name; /* forward declaration */                                     
 \
                                                                                
 \
     template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) >      
 \
     struct BOOST_PP_CAT(name,Concept)                                          
 \
       : name< BOOST_PP_SEQ_ENUM(params) >                                      
 \
     {                                                                          
 \
-        BOOST_PP_CAT(name,Concept)(); /* ctor needed to satisfy gcc-3.4.4 */   
 \
     };                                                                         
 \
                                                                                
 \
     template < BOOST_PP_SEQ_FOR_EACH_I(BOOST_CONCEPT_typename,~,params) >      
 \
     struct name                                                                
+#endif
     
 // Helper for BOOST_concept, above.
 # define BOOST_CONCEPT_typename(r, ignored, index, t) \


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