From 958b4fbf6e1694e5e20d4892840169c695f342c1 Mon Sep 17 00:00:00 2001
From: Nathan Ridge
Last revised: January 02, 2013 at 07:48:08 GMT |
+Last revised: January 02, 2013 at 08:04:07 GMT |
indexed
),
+ then there is no need for a variable. Instead, give the tag type
+ a constructor that takes the arguments (and store those arguments
+ in the tag object). A usage of the adaptor will then involve construction
+ of an object of the tag type.
diff --git a/doc/reference/extending.qbk b/doc/reference/extending.qbk
index 61687b1..a4657a2 100644
--- a/doc/reference/extending.qbk
+++ b/doc/reference/extending.qbk
@@ -225,6 +225,10 @@ namespace
const detail::reverse_forwarder reversed = detail::reverse_forwarder();
}
``
+Note that this last step only applies if the adaptor takes no arguments. If the adaptor takes arguments
+(such as `indexed`), then there is no need for a variable. Instead, give the tag type a
+constructor that takes the arguments (and store those arguments in the tag object). A usage
+of the adaptor will then involve construction of an object of the tag type.
[endsect]