diff --git a/identity_type/doc/html/index.html b/identity_type/doc/html/index.html index c0dc1ee..240c80d 100644 --- a/identity_type/doc/html/index.html +++ b/identity_type/doc/html/index.html @@ -8,7 +8,7 @@ can be passed to macros even when they contain commas.
Consider the following macro which declares a variable named var
n with the specified
- type (see also var_err.cpp
):
+ type (see also var_error.cpp
):
#define VAR(type, n) type var ## n @@ -215,7 +215,7 @@ BOOST_IDENTITY_TYPE(parenthesized_type)
BOOST_IDENTITY_TYPE — This macro allows to wrap the specified type expression within extra round parenthesis so the type can be passed as a single macro parameter even if it contains commas (not already wrapped within round parenthesis).
// In header: <boost/utility/identity_type.hpp>
-BOOST_IDENTITY_TYPE(parenthesized_type)
Parameters:
parenthesized_type | The type expression to be passed as macro parameter wrapped by a single set of round parenthesis (...) . This type expression can contain an arbitrary number of commas. |
+BOOST_IDENTITY_TYPE(parenthesized_type)
Parameters:
parenthesized_type | The type expression to be passed as macro parameter wrapped by a single set of round parenthesis (...) . This type expression can contain an arbitrary number of commas. |
This macro works on any C++03 compiler (it does not require variadic macros).
This macro must be prefixed by typename
when used within templates. However, the compiler will not be able to automatically determine function template parameters when they are wrapped with this macro (these parameters need to be explicitly specified when calling the function template).
On some compilers (like GCC), using this macro on an abstract types requires to add and remove a reference to the type.
[1]
Using variadic macros, it would be possible to use a single set of parenthesis
BOOST_IDENTITY_TYPE(
type)
instead of two BOOST_IDENTITY_TYPE((
type))