Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80899 - sandbox/type_erasure/libs/type_erasure/example
From: steven_at_[hidden]
Date: 2012-10-07 21:00:30


Author: steven_watanabe
Date: 2012-10-07 21:00:29 EDT (Sun, 07 Oct 2012)
New Revision: 80899
URL: http://svn.boost.org/trac/boost/changeset/80899

Log:
Fix some minor errors in examples.
Text files modified:
   sandbox/type_erasure/libs/type_erasure/example/basic.cpp | 2 ++
   sandbox/type_erasure/libs/type_erasure/example/construction.cpp | 2 +-
   2 files changed, 3 insertions(+), 1 deletions(-)

Modified: sandbox/type_erasure/libs/type_erasure/example/basic.cpp
==============================================================================
--- sandbox/type_erasure/libs/type_erasure/example/basic.cpp (original)
+++ sandbox/type_erasure/libs/type_erasure/example/basic.cpp 2012-10-07 21:00:29 EDT (Sun, 07 Oct 2012)
@@ -12,6 +12,8 @@
 #include <boost/type_erasure/any_cast.hpp>
 #include <boost/type_erasure/builtin.hpp>
 #include <boost/type_erasure/operators.hpp>
+#include <boost/type_erasure/member.hpp>
+#include <boost/type_erasure/free.hpp>
 #include <boost/mpl/vector.hpp>
 #include <iostream>
 

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-10-07 21:00:29 EDT (Sun, 07 Oct 2012)
@@ -63,7 +63,7 @@
         mpl::pair<_c, double>
> types;
 
- any<construct, _b> size(10, make_binding<types>());
+ any<construct, _b> size(std::size_t(10), make_binding<types>());
     any<construct, _c> val(2.5, make_binding<types>());
     any<construct, _a> v(size, val);
     //]


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