started using PP_COUNTER instead of PP_SLOT

[SVN r31159]
This commit is contained in:
Arkadiy Vertleyb
2005-10-01 21:50:23 +00:00
parent b553a2ecda
commit 476fe4cf58

View File

@ -1,21 +1,18 @@
// Copyright (C) 2004 Arkadiy Vertleyb
// Copyright (C) 2004, 2005 Arkadiy Vertleyb
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
// Inclusion of this file increments BOOST_TYPEOF_REGISTRATION_GROUP
// This method was suggested by Paul Mensonides
#ifndef BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP_HPP_INCLUDED
# define BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP_HPP_INCLUDED
# include <boost/preprocessor/slot/slot.hpp>
# define BOOST_TYPEOF_REGISTRATION_GROUP 0
#else
# define BOOST_PP_VALUE BOOST_TYPEOF_REGISTRATION_GROUP + 1
# include BOOST_PP_ASSIGN_SLOT(1)
#ifdef BOOST_TYPEOF_EMULATION
# undef BOOST_TYPEOF_REGISTRATION_GROUP
# define BOOST_TYPEOF_REGISTRATION_GROUP BOOST_PP_SLOT(1)
#endif//BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP_HPP_INCLUDED
# ifndef _MSC_VER
# include <boost/preprocessor/slot/counter.hpp>
# include BOOST_PP_UPDATE_COUNTER()
# define BOOST_TYPEOF_REGISTRATION_GROUP BOOST_PP_COUNTER
# else
# define BOOST_TYPEOF_REGISTRATION_GROUP __COUNTER__
# endif
#endif