|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56643 - sandbox/statistics/cross_validation/boost/statistics/detail/cross_validation/data
From: erwann.rogard_at_[hidden]
Date: 2009-10-07 22:31:39
Author: e_r
Date: 2009-10-07 22:31:39 EDT (Wed, 07 Oct 2009)
New Revision: 56643
URL: http://svn.boost.org/trac/boost/changeset/56643
Log:
m
Text files modified:
sandbox/statistics/cross_validation/boost/statistics/detail/cross_validation/data/input_output_generator.hpp | 17 ++++-------------
1 files changed, 4 insertions(+), 13 deletions(-)
Modified: sandbox/statistics/cross_validation/boost/statistics/detail/cross_validation/data/input_output_generator.hpp
==============================================================================
--- sandbox/statistics/cross_validation/boost/statistics/detail/cross_validation/data/input_output_generator.hpp (original)
+++ sandbox/statistics/cross_validation/boost/statistics/detail/cross_validation/data/input_output_generator.hpp 2009-10-07 22:31:39 EDT (Wed, 07 Oct 2009)
@@ -21,12 +21,15 @@
//
// Note: the library does not require a specific data-type; this one is
// provided as a convenience
+ //
+ // private inheritance of F was abandonned after compilor error with
+ // F = function<R(A)>
template<
typename X,typename F,
typename Kx = mpl::int_<1>,
typename Ky = mpl::int_<2>
>
- class input_output_generator {// : protected F{
+ class input_output_generator {
typedef meta_input_output<X,F,Kx,Ky> meta_;
public:
@@ -36,17 +39,6 @@
typedef typename meta_::type result_type;
input_output_generator(){}
-// input_output_generator(const F& f):F(f){}
-// input_output_generator(const input_output_generator& that)
-// :F(static_cast<const F&>(that)){}
-// input_output_generator&
-// operator=(const input_output_generator& that)
-// {
-// if(&that!=this){
-// static_cast<F&>(*this) = static_cast<const F&>(that);
-// }
-// return (*this);
-// }
input_output_generator(const F& f):f_(f){}
input_output_generator(const input_output_generator& that)
@@ -62,7 +54,6 @@
template<typename X1>
result_type operator()(const X1& x)const{
-// return meta_::make(x,static_cast<const F&>(*this));
return meta_::make(x,this->f_);
}
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