Changed to recommended usage style of BOOST_PP_EMPTY & BOOST_PP_IDENTITY

[SVN r12724]
This commit is contained in:
Vesa Karvonen
2002-02-05 12:19:33 +00:00
parent 0fc08260e2
commit ce975e7b9f

View File

@ -11,6 +11,7 @@
*/
#include <boost/preprocessor/empty.hpp>
#include <boost/preprocessor/identity.hpp>
#include <boost/preprocessor/if.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/stringize.hpp>
@ -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
};