From 44dd1cc56c5ba957723afad87d323055a71f6d46 Mon Sep 17 00:00:00 2001 From: Arkadiy Vertleyb Date: Mon, 30 Jan 2006 00:29:55 +0000 Subject: [PATCH] BOOST_PP_EMPTY usage [SVN r32468] --- include/boost/typeof/modifiers.hpp | 13 +++++++------ include/boost/typeof/vector.hpp | 5 +++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/include/boost/typeof/modifiers.hpp b/include/boost/typeof/modifiers.hpp index 6049abb..2da88e4 100755 --- a/include/boost/typeof/modifiers.hpp +++ b/include/boost/typeof/modifiers.hpp @@ -6,6 +6,7 @@ #define BOOST_TYPEOF_MODIFIERS_HPP_INCLUDED #include +#include #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() @@ -56,7 +57,7 @@ namespace boost { namespace type_of { namespace { #define BOOST_TYPEOF_array_support(ID, Qualifier)\ template\ - struct encode_type_impl\ + struct encode_type_impl\ {\ typedef\ typename encode_type<\ @@ -73,16 +74,16 @@ namespace boost { namespace type_of { namespace { {\ enum{n = Iter::type::value};\ typedef decode_type d;\ - typedef typename d::type Qualifier type[n];\ + typedef typename d::type Qualifier() type[n];\ typedef typename d::iter iter;\ } namespace boost { namespace type_of { namespace { - BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), BOOST_PP_EMPTY()); - BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), const); - BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), volatile); - BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), volatile const); + BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), BOOST_PP_EMPTY); + BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), BOOST_PP_IDENTITY(const)); + BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), BOOST_PP_IDENTITY(volatile)); + BOOST_TYPEOF_array_support(BOOST_TYPEOF_UNIQUE_ID(), BOOST_PP_IDENTITY(volatile const)); }}} diff --git a/include/boost/typeof/vector.hpp b/include/boost/typeof/vector.hpp index 9500b39..a4a6a2f 100755 --- a/include/boost/typeof/vector.hpp +++ b/include/boost/typeof/vector.hpp @@ -69,7 +69,8 @@ # include # include # include -# include +# include +# include // iterator @@ -103,7 +104,7 @@ namespace boost { namespace type_of { typedef mpl::int_<1> item ## n; # define BOOST_TYPEOF_define_vector(n)\ - template\ + template\ struct vector ## n\ {\ typedef v_iter > begin;\