diff --git a/doc/html/boost_config/boost_macro_reference.html b/doc/html/boost_config/boost_macro_reference.html index e1b2271f..0cf66fc7 100644 --- a/doc/html/boost_config/boost_macro_reference.html +++ b/doc/html/boost_config/boost_macro_reference.html @@ -2894,6 +2894,30 @@ + +

+ BOOST_PREVENT_MACRO_SUBSTITUTION +

+ + +

+ Sometimes you have a function name with the same name as a C macro, + for example "min" and "max" member functions, + in which case one can prevent the function being expanded as a + macro using: +

+
someclass.min BOOST_PREVENT_MACRO_SUBSTITUTION(arg1, arg2);
+
+

+ The following also works in most, but not all, contexts: +

+
(someclass.max)(arg1, arg2);
+
+

+

+ + +

BOOST_DEDUCED_TYPENAME diff --git a/doc/html/index.html b/doc/html/index.html index e13b8a9f..d45b02b8 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -28,7 +28,7 @@

-

+

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

@@ -946,7 +946,7 @@
- +

Last revised: March 15, 2011 at 13:01:43 GMT

Last revised: April 06, 2011 at 10:49:30 GMT


diff --git a/doc/macro_reference.qbk b/doc/macro_reference.qbk index ee57bbc1..40c0ff61 100644 --- a/doc/macro_reference.qbk +++ b/doc/macro_reference.qbk @@ -668,6 +668,17 @@ of `__BORLANDC__` /unless/ the macro `BOOST_DETECT_OUTDATED_WORKAROUNDS` is defi [*Note]: the ultimate source of documentation for this macro is in [@../../../../boost/detail/workaround.hpp boost/detail/workaround.hpp]. ]] +[[`BOOST_PREVENT_MACRO_SUBSTITUTION`][ +Sometimes you have a function name with the same name as a C macro, for example "min" and "max" +member functions, in which case one can prevent the function being expanded as a macro using: +`` +someclass.min BOOST_PREVENT_MACRO_SUBSTITUTION(arg1, arg2); +`` +The following also works in most, but not all, contexts: +`` +(someclass.max)(arg1, arg2); +`` +]] [[`BOOST_DEDUCED_TYPENAME`][ Some compilers don't support the use of typename for dependent types in deduced contexts. This macro expands to nothing on those compilers, and typename