From ce975e7b9f9a1591e6f83108d83833604b005659 Mon Sep 17 00:00:00 2001 From: Vesa Karvonen Date: Tue, 5 Feb 2002 12:19:33 +0000 Subject: [PATCH] Changed to recommended usage style of BOOST_PP_EMPTY & BOOST_PP_IDENTITY [SVN r12724] --- test/preprocessor_test.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/preprocessor_test.cpp b/test/preprocessor_test.cpp index eadc039..d15fe0d 100644 --- a/test/preprocessor_test.cpp +++ b/test/preprocessor_test.cpp @@ -11,6 +11,7 @@ */ #include +#include #include #include #include @@ -22,12 +23,12 @@ struct Container { #define BOOST_PP_DEF(CV)\ - CV int& operator[](int i) CV; + CV() int& operator[](int i) CV(); - BOOST_PP_DEF(BOOST_PP_EMPTY()) - BOOST_PP_DEF(const) - BOOST_PP_DEF(volatile) - BOOST_PP_DEF(const volatile) + BOOST_PP_DEF(BOOST_PP_EMPTY) + BOOST_PP_DEF(BOOST_PP_IDENTITY(const)) + BOOST_PP_DEF(BOOST_PP_IDENTITY(volatile)) + BOOST_PP_DEF(BOOST_PP_IDENTITY(const volatile)) #undef BOOST_PP_DEF };