Update of /cvsroot/boost/boost/boost/typeof
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16300/boost/typeof
Modified Files:
typeof_impl.hpp
Log Message:
Fixed error with BOOST_TYPEOF_NESTED_TYPEDEF for CW.
Index: typeof_impl.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/typeof/typeof_impl.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- typeof_impl.hpp 27 Jul 2006 10:27:37 -0000 1.5
+++ typeof_impl.hpp 28 Aug 2006 13:26:19 -0000 1.6
@@ -107,6 +107,19 @@
typedef _typeof_fraction_iter<typename Pos::next> next;\
};
+#ifdef __MWERKS__
+
+# define BOOST_TYPEOF_NESTED_TYPEDEF(name,expr) \
+template<typename T>\
+struct BOOST_PP_CAT(_typeof_template_,name) {\
+ BOOST_TYPEOF_NESTED_TYPEDEF_IMPL(expr)\
+ typedef typename
boost::type_of::decode_type<_typeof_fraction_iter<boost::mpl::size_t<0> >
>::type type;\
+};\
+typedef BOOST_PP_CAT(_typeof_template_,name)<int> name;
+
+# define BOOST_TYPEOF_NESTED_TYPEDEF_TPL(name,expr)
BOOST_TYPEOF_NESTED_TYPEDEF(name,expr);
+
+#else
# define BOOST_TYPEOF_NESTED_TYPEDEF_TPL(name,expr) \
struct name {\
BOOST_TYPEOF_NESTED_TYPEDEF_IMPL(expr)\
@@ -118,5 +131,6 @@
BOOST_TYPEOF_NESTED_TYPEDEF_IMPL(expr)\
typedef
boost::type_of::decode_type<_typeof_fraction_iter<boost::mpl::size_t<0> >
>::type type;\
};
+#endif
#endif//BOOST_TYPEOF_COMPLIANT_TYPEOF_IMPL_HPP_INCLUDED
-------------------------------------------------------------------------
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
|