From 476fe4cf58f190e1410071e91dc068defac08f4c Mon Sep 17 00:00:00 2001 From: Arkadiy Vertleyb Date: Sat, 1 Oct 2005 21:50:23 +0000 Subject: [PATCH] started using PP_COUNTER instead of PP_SLOT [SVN r31159] --- .../typeof/increment_registration_group.hpp | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/include/boost/typeof/increment_registration_group.hpp b/include/boost/typeof/increment_registration_group.hpp index 0509e1a..7b61efa 100755 --- a/include/boost/typeof/increment_registration_group.hpp +++ b/include/boost/typeof/increment_registration_group.hpp @@ -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 -# 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 +# include BOOST_PP_UPDATE_COUNTER() +# define BOOST_TYPEOF_REGISTRATION_GROUP BOOST_PP_COUNTER +# else +# define BOOST_TYPEOF_REGISTRATION_GROUP __COUNTER__ +# endif +#endif