Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79606 - sandbox/type_erasure/libs/type_erasure/example
From: steven_at_[hidden]
Date: 2012-07-19 14:54:12


Author: steven_watanabe
Date: 2012-07-19 14:54:11 EDT (Thu, 19 Jul 2012)
New Revision: 79606
URL: http://svn.boost.org/trac/boost/changeset/79606

Log:
Try to make the constructor example more clear.
Text files modified:
   sandbox/type_erasure/libs/type_erasure/example/construction.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox/type_erasure/libs/type_erasure/example/construction.cpp
==============================================================================
--- sandbox/type_erasure/libs/type_erasure/example/construction.cpp (original)
+++ sandbox/type_erasure/libs/type_erasure/example/construction.cpp 2012-07-19 14:54:11 EDT (Thu, 19 Jul 2012)
@@ -21,7 +21,7 @@
     //[construction1
     /*`
         The library provides the __constructible concept to
- allow custom construction of __any. The single
+ allow an __any to capture constructors. The single
         template argument should be a function signature.
         The return type must be a placeholder specifying
         the type to be constructed. The arguments are
@@ -39,6 +39,7 @@
     double d = 2.5;
     tuple<construct, _a&, _b, _c> t(vec, i, d);
     any<construct, _a> v(get<1>(t), get<2>(t));
+ // v holds std::vector<double>(10, 2.5);
     //]
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk