diff --git a/index.html b/index.html
index 8bb4074..ca3df40 100644
--- a/index.html
+++ b/index.html
@@ -27,12 +27,41 @@
Compatibility Note
Boost.Function has been partially redesigned to minimize the interface and make it cleaner. Several seldom- or never-used features of the older Boost.Function have been deprecated and will be removed in the near future. Here is a list of features that have been deprecated, the likely impact of the deprecations, and how to adjust your code:
boost::function
class template syntax has changed. The old syntax, e.g., boost::function<int, float, double, std::string>
, has been changed to a more natural syntax boost::function<int (float, double, std::string)>
, where all return and argument types are encoded in a single function type parameter. Any other template parameters (e.g., the Allocator
) follow this single parameter.
- The resolution to this change depends on the abilities of your compiler: if your compiler supports template partial specialization (most do), modify your code to use the newer syntax (preferable) or directly use one of the functionN
classes whose syntax has not changed. If your compiler does not support template partial specialization, you must take the latter option and use the numbered Boost.Function classes.
-
Support for the old syntax with the boost::function
class template will persist for a short while, but will eventually be removed so that we can provide better error messages and link compatibility.
Policy
) has been deprecated and will be removed. There is no direct equivalent to this rarely used feature.Mixin
) has been deprecated and will be removed. There is not direct equivalent to this rarely used feature.set
methods have been deprecated and will be removed. Use the assignment operator instead.boost::function
class template syntax has
+ changed. The old syntax, e.g., boost::function<int, float,
+ double, std::string>
, has been changed to a more natural
+ syntax boost::function<int (float, double,
+ std::string)>
, where all return and argument types are
+ encoded in a single function type parameter. Any other template
+ parameters (e.g., the Allocator
) follow this single
+ parameter.
+
+ The resolution to this change depends on the
+ abilities of your compiler: if your compiler supports template
+ partial specialization and can parse function types (most do), modify
+ your code to use the newer
+ syntax (preferable) or directly use one of the
+ functionN
classes whose syntax has not
+ changed. If your compiler does not support template partial
+ specialization or function types, you must take the latter option and
+ use the numbered Boost.Function classes. This option merely requires
+ changing types such as boost::function<void, int, int>
+ to boost::function2<void, int, int>
(adding the number of
+ function arguments to the end of the class name).
+
+
Support for the old syntax with the
+ boost::function
class template will persist for a short
+ while, but will eventually be removed so that we can provide better
+ error messages and link compatibility.
Policy
) has been deprecated
+ and will be removed. There is no direct equivalent to this rarely
+ used feature.Mixin
) has been deprecated and will be removed. There
+ is not direct equivalent to this rarely used feature.set
methods have been deprecated and will be
+ removed. Use the assignment operator instead.