diff --git a/doc/advanced_topics.qbk b/doc/advanced_topics.qbk index 34b6744..5e078e2 100644 --- a/doc/advanced_topics.qbk +++ b/doc/advanced_topics.qbk @@ -368,6 +368,7 @@ In general, it is not possible to expand the [macroref BOOST_LOCAL_FUNCTION], [m The [macroref BOOST_LOCAL_FUNCTION] and [macroref BOOST_LOCAL_FUNCTION_TPL] macros internally use `__LINE__` to generate unique identifiers. Therefore, if the same macro is expanded more than on time on the same line, the generated identifiers will no longer be unique and the code will not compile. (This restriction does not apply to MSVC and other compilers that provide the non-standard `__COUNTER__` macro.) +Note that the [macroref BOOST_LOCAL_FUNCTION_NAME] macro can always be expanded multiple times on the same line because a unique local function name must be provided for each different expansion (so the is no need for a `BOOST_LOCAL_FUNCTION_NAME_ID` macro). ] Therefore, this library provides the additional macro [macroref BOOST_LOCAL_FUNCTION_ID] which can be expanded multiple times on the same line as long as programmers specify a unique identifier as the macro's first parameter. diff --git a/doc/examples.qbk b/doc/examples.qbk index 5df2ab8..4d212dc 100644 --- a/doc/examples.qbk +++ b/doc/examples.qbk @@ -17,11 +17,11 @@ Combing local functions with the [@http://gcc.gnu.org/onlinedocs/gcc/Statement-E This code only works on compilers that support the statement expression GCC extension or that support __CPP11_lambda__ functions. ] -For example (see also [@../../example/gcc_lambda.cpp =gcc_lambda.cpp=] and [@../../example/gcc_lambda_cpp11.cpp =gcc_lambda_cpp11.cpp=]): +For example (see also [@../../example/gcc_lambda.cpp =gcc_lambda.cpp=] and [@../../example/gcc_lambda_cxx11.cpp =gcc_lambda_cxx11.cpp=]): [table [ [With Local Functions (GCC only)] [C++11 Lambdas] ] - [ [[gcc_lambda]] [[gcc_lambda_cpp11]] ] + [ [[gcc_lambda]] [[gcc_lambda_cxx11]] ] ] Where the macros are defined in [@../../example/gcc_lambda.hpp =gcc_lambda.hpp=]. diff --git a/doc/getting_started.qbk b/doc/getting_started.qbk index 65a5269..f7f50e0 100644 --- a/doc/getting_started.qbk +++ b/doc/getting_started.qbk @@ -30,13 +30,13 @@ Using __Boost_Test__ allows to add the documentation examples to the library reg The implementation of this library uses preprocessor and template meta-programming (as supported by __Boost_Preprocessor__ and __Boost_MPL__), templates with partial specializations and function pointers (similarly to __Boost_Function__). As a consequence, this library is fairly demanding on compilers' compliance with the __CPP03__ standard. -At present, this library has been successfully compiled and tested on the following compilers and platforms: +The authors originally developed and tested the library on: -# GNU Compiler Collection (GCC) 4.5.1 on Ubuntu Linux 10. +# GNU Compiler Collection (GCC) C++ 4.5.1 on Ubuntu Linux 10. # GCC 4.3.4 and 4.5.3 (with and without __CPP11__ features enabled `-std=c++0x`) on Cygwin. -# Miscrosoft Visual Studio Compiler (MSVC) 8.0 on Windows XP and Windows 7. +# Miscrosoft Visual C++ (MSVC) 8.0 on Windows XP and Windows 7. -This library has not yet been tested on any other compiler and platform. +See the library [@http://www.boost.org/development/tests/release/developer/local_function.html regressions test results] for detailed information on supported compilers and platforms. [endsect] diff --git a/doc/html/BOOST_LOCAL_FUNCTION.html b/doc/html/BOOST_LOCAL_FUNCTION.html index f661d0c..a29effa 100644 --- a/doc/html/BOOST_LOCAL_FUNCTION.html +++ b/doc/html/BOOST_LOCAL_FUNCTION.html @@ -33,7 +33,7 @@ BOOST_LOCAL_FUNCTION(declarations)
This macro must be used within a declarative context, it must follow the local function result type, it must be followed by the local function body code, and then by the BOOST_LOCAL_FUNCTION_NAME macro (see the Tutorial and Advanced Topics sections):
{ // Some declarative context. ... diff --git a/doc/html/BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX.html b/doc/html/BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX.html index 55f06a6..9fffe6d 100644 --- a/doc/html/BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX.html +++ b/doc/html/BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX.html @@ -33,7 +33,7 @@ BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX
If programmers leave this configuration macro undefined, its default value is 5 (increasing this number might increase compilation time). When defined by programmers, this macro must be a non-negative integer number.
Note: This macro specifies the maximum number of local function parameters excluding bound variables (which are instead specified by BOOST_LOCAL_FUNCTION_CONFIG_BIND_MAX).
See: Tutorial section, Getting Started section, BOOST_LOCAL_FUNCTION_CONFIG_BIND_MAX.
If programmers leave this configuration macro undefined, its default value is 10 (increasing this number might increase compilation time). When defined by programmers, this macro must be a non-negative integer number.
Note: This macro specifies the maximum number of bound variables excluding local function parameters (which are instead specified by BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX).
See: Tutorial section, Getting Started section, BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX.
This macro is equivalent to BOOST_LOCAL_FUNCTION but it can be expanded multiple times on the same line if different identifiers id are provided for each expansion (see BOOST_LOCAL_FUNCTION for more detail).
Parameters:
|
Compiled with |
For example (see also gcc_lambda.cpp
- and gcc_lambda_cpp11.cpp):
+ and gcc_lambda_cxx11.cpp):
|
+ + Files + + |
|---|
| + + |
| + + |
| + + |
| + + |
| + + |
| + + |
|
+
+ |
| + + |
| + + |
|
+
+ |
| + + |
| + + |
|
+
+ |
|
+
+ |
| + + |
| + + |
| + + |
| + + |
| + + |
| + + |
| + + |
|
+
+ |
| + + |
| diff --git a/doc/html/index.html b/doc/html/index.html index 48d0be3..c602095 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -145,7 +145,7 @@ int nums[] = {2, 3}; std::for_each(nums, nums + 2, add); // Pass it to an algorithm. - BOOST_CHECK( sum == 60 ); // Assert final summation value. + BOOST_CHECK(sum == 60); // Assert final summation value. } |
Last revised: March 19, 2012 at 22:33:31 GMT |
+Last revised: March 22, 2012 at 20:50:10 GMT |