The BOOST_PP_VALUE macro is a user-defined macro used as an argument to BOOST_PP_ASSIGN_SLOT.

Usage

#define BOOST_PP_VALUE value

Pseudo-Arguments

value
A value to be evaluated by BOOST_PP_ASSIGN_SLOT

Remarks

When fully evaluated, this macro must expand to an integral constant-expression.  This can include simple arithmetic that the preprocessor can evaluate.

See Also

Sample Code

#include <iostream>

#include <boost/preprocessor/stringize.hpp>
#include <boost/preprocessor/iterate.hpp>

#define X() 4

#define BOOST_PP_VALUE 1 + 2 + 3 + X()
??=include BOOST_PP_ASSIGN_SLOT(1)

#undef X

int main(void) {
	std::cout
		<< BOOST_PP_STRINGIZE(BOOST_PP_SLOT(1)) // outputs "10"
		<< &std::endl;
	return 0;
}