Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74555 - sandbox/variadic_templates/sandbox/stepper/libs/array_stepper/examples
From: cppljevans_at_[hidden]
Date: 2011-09-24 12:45:02


Author: cppljevans
Date: 2011-09-24 12:45:02 EDT (Sat, 24 Sep 2011)
New Revision: 74555
URL: http://svn.boost.org/trac/boost/changeset/74555

Log:
* Allow user specified N_t instead of calculated N_t.
* Align left the output

Text files modified:
   sandbox/variadic_templates/sandbox/stepper/libs/array_stepper/examples/array_dyn.ade.crtp.cpp | 7 +++----
   1 files changed, 3 insertions(+), 4 deletions(-)

Modified: sandbox/variadic_templates/sandbox/stepper/libs/array_stepper/examples/array_dyn.ade.crtp.cpp
==============================================================================
--- sandbox/variadic_templates/sandbox/stepper/libs/array_stepper/examples/array_dyn.ade.crtp.cpp (original)
+++ sandbox/variadic_templates/sandbox/stepper/libs/array_stepper/examples/array_dyn.ade.crtp.cpp 2011-09-24 12:45:02 EDT (Sat, 24 Sep 2011)
@@ -55,7 +55,7 @@
         <<")"
     #else
       sout
- <<std::setw(ew)<<std::setprecision(ep)<<err
+ <<std::setw(ew)<<std::showpos<<std::left<<std::setprecision(ep)<<err
     #endif
         ;
       return sout;
@@ -145,10 +145,9 @@
 t_max=1.0
   ;
   unsigned
-N_t=0
+N_t=3
   /**@brief
    * Number of time increments.
- * Actual value calculated by mk_del_t.
    */
   ;
   value_t const
@@ -174,7 +173,7 @@
             //extra insurance.
             ;
       }
- N_t=(t_max-t_offset)/del_t;
+ if(N_t==0) N_t=(t_max-t_offset)/del_t;
       return del_t;
   }
   


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