Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82858 - sandbox/type_erasure/libs/type_erasure/example
From: steven_at_[hidden]
Date: 2013-02-13 13:08:58


Author: steven_watanabe
Date: 2013-02-13 13:08:57 EST (Wed, 13 Feb 2013)
New Revision: 82858
URL: http://svn.boost.org/trac/boost/changeset/82858

Log:
Fix wrong #include and missing bases.
Text files modified:
   sandbox/type_erasure/libs/type_erasure/example/overload.cpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: sandbox/type_erasure/libs/type_erasure/example/overload.cpp
==============================================================================
--- sandbox/type_erasure/libs/type_erasure/example/overload.cpp (original)
+++ sandbox/type_erasure/libs/type_erasure/example/overload.cpp 2013-02-13 13:08:57 EST (Wed, 13 Feb 2013)
@@ -9,7 +9,7 @@
 // $Id$
 
 #include <boost/type_erasure/concept_interface.hpp>
-#include <boost/type_erasure/as_param.hpp>
+#include <boost/type_erasure/param.hpp>
 #include <boost/type_erasure/derived.hpp>
 #include <boost/type_erasure/is_placeholder.hpp>
 #include <boost/utility/enable_if.hpp>
@@ -58,7 +58,7 @@
 namespace type_erasure {
 
 template<class T, class U, class Base, class Enable>
-struct concept_interface< ::foo<T, U>, Base, T, Enable>
+struct concept_interface< ::foo<T, U>, Base, T, Enable> : Base
 {
     typedef void _fun_defined;
     void foo(typename as_param<Base, const U&>::type arg)
@@ -68,7 +68,7 @@
 };
 
 template<class T, class U, class Base>
-struct concept_interface< ::foo<T, U>, Base, T, typename Base::_fun_defined>
+struct concept_interface< ::foo<T, U>, Base, T, typename Base::_fun_defined> : Base
 {
     using Base::foo;
     void foo(typename as_param<Base, const U&>::type arg)
@@ -118,7 +118,7 @@
 namespace type_erasure {
 
 template<class T, class U, class Base>
-struct concept_interface< ::bar_concept<T, U>, Base, T>
+struct concept_interface< ::bar_concept<T, U>, Base, T> : Base
 {
     friend void bar(typename derived<Base>::type& t, typename as_param<Base, const U&>::type u)
     {
@@ -127,7 +127,7 @@
 };
 
 template<class T, class U, class Base>
-struct concept_interface< ::bar_concept<T, U>, Base, U, typename boost::disable_if<is_placeholder<T> >::type>
+struct concept_interface< ::bar_concept<T, U>, Base, U, typename boost::disable_if<is_placeholder<T> >::type> : Base
 {
     using Base::bar;
     friend void bar(T& t, const typename derived<Base>::type& u)


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