$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r59501 - sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights
From: erwann.rogard_at_[hidden]
Date: 2010-02-04 19:49:24
Author: e_r
Date: 2010-02-04 19:49:23 EST (Thu, 04 Feb 2010)
New Revision: 59501
URL: http://svn.boost.org/trac/boost/changeset/59501
Log:
m
Text files modified: 
   sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights/apply_exp_offset.hpp |     9 +++++++--                               
   1 files changed, 7 insertions(+), 2 deletions(-)
Modified: sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights/apply_exp_offset.hpp
==============================================================================
--- sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights/apply_exp_offset.hpp	(original)
+++ sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights/apply_exp_offset.hpp	2010-02-04 19:49:23 EST (Thu, 04 Feb 2010)
@@ -33,8 +33,13 @@
         typedef typename iterator_value<It>::type val_;
         val_ max = *std::max_element(b,e);
         val_ offset = (t - max); 
-        std::transform(b,e,b,
-            lambda::bind<val_>(exp,lambda::_1 + offset)
+        typedef val_(*fp_)(val_);
+        fp_ fp = std::exp;
+        std::transform(
+        	b,
+            e,
+            b,
+            lambda::bind<val_>(fp,lambda::_1 + offset)
         );
         return offset;
     }