Update of /cvsroot/boost/boost/boost/typeof
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29876/boost/typeof
Modified Files:
typeof_impl.hpp
Log Message:
DMC support for BOOST_TYPEOF_NESTED_TYPEDEF
Index: typeof_impl.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/typeof/typeof_impl.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- typeof_impl.hpp 30 Aug 2006 17:19:32 -0000 1.8
+++ typeof_impl.hpp 8 Sep 2006 16:16:57 -0000 1.9
@@ -94,6 +94,18 @@
BOOST_STATIC_CONSTANT(int,BOOST_PP_CAT(value,n) =
sizeof(boost::type_of::encode<_typeof_start_vector>(expr).item ## n));\
typedef boost::mpl::size_t<BOOST_PP_CAT(value,n)> BOOST_PP_CAT(item,n);
+#ifdef __DMC__
+#define BOOST_TYPEOF_NESTED_TYPEITEM_2(z,n,expr)\
+ typedef typename
_typeof_encode_fraction<iteration>::BOOST_PP_CAT(item,n) BOOST_PP_CAT(item,n);
+
+#define BOOST_TYPEOF_FRACTIONTYPE()\
+
BOOST_PP_REPEAT(BOOST_TYPEOF_LIMIT_SIZE,BOOST_TYPEOF_NESTED_TYPEITEM_2,_)\
+ typedef _typeof_fraction_iter<Pos> fraction_type;
+#else
+#define BOOST_TYPEOF_FRACTIONTYPE()\
+ typedef _typeof_encode_fraction<iteration> fraction_type;
+#endif
+
#define BOOST_TYPEOF_NESTED_TYPEDEF_IMPL(expr) \
template<int _Typeof_Iteration>\
struct _typeof_encode_fraction {\
@@ -106,7 +118,8 @@
BOOST_STATIC_CONSTANT(int,pos=(Pos::value));\
BOOST_STATIC_CONSTANT(int,iteration=(pos/BOOST_TYPEOF_LIMIT_SIZE));\
BOOST_STATIC_CONSTANT(int,where=pos%BOOST_TYPEOF_LIMIT_SIZE);\
- typedef typename
boost::type_of::v_iter<_typeof_encode_fraction<iteration>,boost::mpl::int_<where>
>::type type;\
+ BOOST_TYPEOF_FRACTIONTYPE();\
+ typedef typename
boost::type_of::v_iter<fraction_type,boost::mpl::int_<where> >::type type;\
typedef _typeof_fraction_iter<typename Pos::next> next;\
};
-------------------------------------------------------------------------
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