BOOST_LOCAL_FUNCTION_ID — This macro allows to declare multiple local functions on the same line.
// In header: <boost/local_function.hpp> BOOST_LOCAL_FUNCTION_ID(id, declarations)
||A unique identifier token which can be concatenated by the preprocessor (
||Same as the
BOOST_LOCAL_FUNCTION_NAME macro should be used to end each one of the multiple local function declarations as usual (and it will specify a unique name for each local function).
Within templates, the special macros
BOOST_LOCAL_FUNCTION_ID_TPL must be used.
Note: This macro can be useful when the local function macros are expanded within user-defined macros (because macros all expand on the same line). On some compilers (e.g., MSVC which supports the non-standard
__COUNTER__ macro) it might not be necessary to use this macro but the use of this macro when expanding multiple local function macros on the same line is always necessary to ensure portability (this is because this library can only portably use
__LINE__ to internally generate unique identifiers).