X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=boost_ext%2Fboost%2Ftypeof%2Fregister_functions.hpp;fp=boost_ext%2Fboost%2Ftypeof%2Fregister_functions.hpp;h=2af7cecb71534250a1d2248695864c51c8d44f91;hb=4123b4fe58a7fd4659fa01476581690b47c83600;hp=0000000000000000000000000000000000000000;hpb=79564b90f6c9f7cd0bc5b11a6146bb7067b11a75;p=senf.git diff --git a/boost_ext/boost/typeof/register_functions.hpp b/boost_ext/boost/typeof/register_functions.hpp new file mode 100644 index 0000000..2af7cec --- /dev/null +++ b/boost_ext/boost/typeof/register_functions.hpp @@ -0,0 +1,43 @@ +// Copyright (C) 2004 Arkadiy Vertleyb +// Use, modification and distribution is subject to the Boost Software +// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) + +#ifndef BOOST_TYPEOF_REGISTER_FUNCTIONS_HPP_INCLUDED +#define BOOST_TYPEOF_REGISTER_FUNCTIONS_HPP_INCLUDED + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() + +#ifndef BOOST_TYPEOF_LIMIT_FUNCTION_ARITY +#define BOOST_TYPEOF_LIMIT_FUNCTION_ARITY 10 +#endif + +enum +{ + FUN_ID = BOOST_TYPEOF_UNIQUE_ID(), + FUN_PTR_ID = FUN_ID + 1 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY), + FUN_REF_ID = FUN_ID + 2 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY), + MEM_FUN_ID = FUN_ID + 3 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY), + CONST_MEM_FUN_ID = FUN_ID + 4 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY), + VOLATILE_MEM_FUN_ID = FUN_ID + 5 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY), + VOLATILE_CONST_MEM_FUN_ID = FUN_ID + 6 * BOOST_PP_INC(BOOST_TYPEOF_LIMIT_FUNCTION_ARITY) +}; + +BOOST_TYPEOF_BEGIN_ENCODE_NS + +# define BOOST_PP_ITERATION_LIMITS (0, BOOST_TYPEOF_LIMIT_FUNCTION_ARITY) +# define BOOST_PP_FILENAME_1 +# include BOOST_PP_ITERATE() + +BOOST_TYPEOF_END_ENCODE_NS + +#endif//BOOST_TYPEOF_REGISTER_FUNCTIONS_HPP_INCLUDED