Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56072 - in sandbox/itl/boost: itl/type_traits validate/driver validate/validater
From: afojgo_at_[hidden]
Date: 2009-09-06 14:35:22


Author: jofaber
Date: 2009-09-06 14:35:21 EDT (Sun, 06 Sep 2009)
New Revision: 56072
URL: http://svn.boost.org/trac/boost/changeset/56072

Log:
Refactoring, portability: BOOST_STATIC_CONSTANT more adjustments, some includes needed.
Text files modified:
   sandbox/itl/boost/itl/type_traits/is_map.hpp | 2 ++
   sandbox/itl/boost/itl/type_traits/is_set.hpp | 2 ++
   sandbox/itl/boost/validate/driver/itl_driver.hpp | 4 ++--
   sandbox/itl/boost/validate/validater/unsigned_quantifier_validater.hpp | 1 -
   4 files changed, 6 insertions(+), 3 deletions(-)

Modified: sandbox/itl/boost/itl/type_traits/is_map.hpp
==============================================================================
--- sandbox/itl/boost/itl/type_traits/is_map.hpp (original)
+++ sandbox/itl/boost/itl/type_traits/is_map.hpp 2009-09-06 14:35:21 EDT (Sun, 06 Sep 2009)
@@ -8,6 +8,8 @@
 #ifndef __itl_type_traits_is_map_JOFA_081107_H__
 #define __itl_type_traits_is_map_JOFA_081107_H__
 
+#include <boost/config.hpp>
+
 namespace boost{ namespace itl
 {
     template <class Type> struct is_map

Modified: sandbox/itl/boost/itl/type_traits/is_set.hpp
==============================================================================
--- sandbox/itl/boost/itl/type_traits/is_set.hpp (original)
+++ sandbox/itl/boost/itl/type_traits/is_set.hpp 2009-09-06 14:35:21 EDT (Sun, 06 Sep 2009)
@@ -8,6 +8,8 @@
 #ifndef __itl_type_traits_is_set_JOFA_081004_H__
 #define __itl_type_traits_is_set_JOFA_081004_H__
 
+#include <boost/config.hpp>
+
 namespace boost{ namespace itl
 {
     template <class Type> struct is_set

Modified: sandbox/itl/boost/validate/driver/itl_driver.hpp
==============================================================================
--- sandbox/itl/boost/validate/driver/itl_driver.hpp (original)
+++ sandbox/itl/boost/validate/driver/itl_driver.hpp 2009-09-06 14:35:21 EDT (Sun, 06 Sep 2009)
@@ -94,7 +94,7 @@
                 long law_validation_count = it->CONT_VALUE.count();
                 double avg_law_evaluation_time =
                     it->CONT_VALUE.time()/(law_validation_count);
- printf("%3d %-58s%9d%7.0lf\n",
+ printf("%3d %-58s%9ld%7.0lf\n",
                     valid_count, it->KEY_VALUE.c_str(), law_validation_count, avg_law_evaluation_time);
 
                 avg_evaluation_time += avg_law_evaluation_time;
@@ -105,7 +105,7 @@
             std::cout << "------------------------------------------------------------------------------" << std::endl;
             // Summary for the current cycle
             double avg_evaluation_time_per_law = avg_evaluation_time/_frequencies.size();
- printf( " %10.3lf%-50s%7d%7.0lf\n",
+ printf( " %10.3lf%-50s%7ld%7.0lf\n",
                     avg_evaluation_time_per_law, " ", instance_count, avg_evaluation_time_per_law);
 
             int violation_count = 1;

Modified: sandbox/itl/boost/validate/validater/unsigned_quantifier_validater.hpp
==============================================================================
--- sandbox/itl/boost/validate/validater/unsigned_quantifier_validater.hpp (original)
+++ sandbox/itl/boost/validate/validater/unsigned_quantifier_validater.hpp 2009-09-06 14:35:21 EDT (Sun, 06 Sep 2009)
@@ -45,7 +45,6 @@
     void setProfile()
     {
         const int sum_of_shares = 100;
- const int law_share = sum_of_shares / Laws_size;
 
         _lawChoice.setSize(Laws_size);
         _lawChoice.setMaxWeights(sum_of_shares);


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