|
Boost-Commit : |
From: eric_at_[hidden]
Date: 2008-03-04 14:31:58
Author: eric_niebler
Date: 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
New Revision: 43501
URL: http://svn.boost.org/trac/boost/changeset/43501
Log:
eliminate msvc level 4 warnings, fixes #1631
Text files modified:
trunk/boost/accumulators/framework/accumulator_set.hpp | 1 +
trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp | 4 +++-
trunk/boost/accumulators/statistics/extended_p_square.hpp | 3 +--
trunk/boost/accumulators/statistics/extended_p_square_quantile.hpp | 9 +++++++++
trunk/boost/accumulators/statistics/p_square_quantile.hpp | 3 +--
trunk/boost/accumulators/statistics/peaks_over_threshold.hpp | 9 +++++++++
trunk/boost/accumulators/statistics/tail.hpp | 2 ++
trunk/boost/accumulators/statistics/tail_mean.hpp | 9 +++++++++
trunk/boost/accumulators/statistics/tail_quantile.hpp | 9 +++++++++
trunk/boost/accumulators/statistics/tail_variate_means.hpp | 9 +++++++++
trunk/boost/accumulators/statistics/weighted_extended_p_square.hpp | 3 +--
trunk/boost/accumulators/statistics/weighted_median.hpp | 3 +--
trunk/boost/accumulators/statistics/weighted_p_square_quantile.hpp | 3 +--
trunk/boost/accumulators/statistics/weighted_peaks_over_threshold.hpp | 9 +++++++++
trunk/boost/accumulators/statistics/weighted_tail_mean.hpp | 9 +++++++++
trunk/boost/accumulators/statistics/weighted_tail_quantile.hpp | 9 +++++++++
trunk/boost/accumulators/statistics/weighted_tail_variate_means.hpp | 9 +++++++++
17 files changed, 92 insertions(+), 11 deletions(-)
Modified: trunk/boost/accumulators/framework/accumulator_set.hpp
==============================================================================
--- trunk/boost/accumulators/framework/accumulator_set.hpp (original)
+++ trunk/boost/accumulators/framework/accumulator_set.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -54,6 +54,7 @@
}
private:
+ accumulator_visitor &operator =(accumulator_visitor const &);
Args const &args;
};
Modified: trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp
==============================================================================
--- trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp (original)
+++ trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -49,6 +49,7 @@
}
private:
+ add_ref_visitor &operator =(add_ref_visitor const &);
Args const &args_;
};
@@ -86,6 +87,7 @@
}
private:
+ drop_visitor &operator =(drop_visitor const &);
Args const &args_;
};
@@ -123,7 +125,7 @@
}
template<typename Args>
- void add_ref(Args const &args)
+ void add_ref(Args const &)
{
++this->ref_count_;
}
Modified: trunk/boost/accumulators/statistics/extended_p_square.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/extended_p_square.hpp (original)
+++ trunk/boost/accumulators/statistics/extended_p_square.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -222,8 +222,7 @@
}
}
- template<typename Args>
- result_type result(Args const &args) const
+ result_type result(dont_care) const
{
// for i in [1,probabilities.size()], return heights[i * 2]
detail::times2_iterator idx_begin = detail::make_times2_iterator(1);
Modified: trunk/boost/accumulators/statistics/extended_p_square_quantile.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/extended_p_square_quantile.hpp (original)
+++ trunk/boost/accumulators/statistics/extended_p_square_quantile.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -31,6 +31,11 @@
#include <boost/accumulators/statistics/weighted_extended_p_square.hpp>
#include <boost/accumulators/statistics/times2_iterator.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost { namespace accumulators
{
@@ -302,4 +307,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
Modified: trunk/boost/accumulators/statistics/p_square_quantile.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/p_square_quantile.hpp (original)
+++ trunk/boost/accumulators/statistics/p_square_quantile.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -185,8 +185,7 @@
}
}
- template<typename Args>
- result_type result(Args const &args) const
+ result_type result(dont_care) const
{
return this->heights[2];
}
Modified: trunk/boost/accumulators/statistics/peaks_over_threshold.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/peaks_over_threshold.hpp (original)
+++ trunk/boost/accumulators/statistics/peaks_over_threshold.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -32,6 +32,11 @@
#include <boost/accumulators/statistics/count.hpp>
#include <boost/accumulators/statistics/tail.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost { namespace accumulators
{
@@ -387,4 +392,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
Modified: trunk/boost/accumulators/statistics/tail.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/tail.hpp (original)
+++ trunk/boost/accumulators/statistics/tail.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -83,6 +83,7 @@
}
private:
+ stat_assign_visitor &operator =(stat_assign_visitor const &);
Args const &args;
std::size_t index;
};
@@ -254,6 +255,7 @@
}
private:
+ indirect_cmp &operator =(indirect_cmp const &);
std::vector<Sample> const &samples;
};
Modified: trunk/boost/accumulators/statistics/tail_mean.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/tail_mean.hpp (original)
+++ trunk/boost/accumulators/statistics/tail_mean.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -28,6 +28,11 @@
#include <boost/accumulators/statistics/tail_quantile.hpp>
#include <boost/accumulators/statistics/parameters/quantile_probability.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost { namespace accumulators
{
@@ -231,4 +236,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
Modified: trunk/boost/accumulators/statistics/tail_quantile.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/tail_quantile.hpp (original)
+++ trunk/boost/accumulators/statistics/tail_quantile.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -29,6 +29,11 @@
#include <boost/accumulators/statistics/count.hpp>
#include <boost/accumulators/statistics/parameters/quantile_probability.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost { namespace accumulators
{
@@ -144,4 +149,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
Modified: trunk/boost/accumulators/statistics/tail_variate_means.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/tail_variate_means.hpp (original)
+++ trunk/boost/accumulators/statistics/tail_variate_means.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -28,6 +28,11 @@
#include <boost/accumulators/statistics/tail_mean.hpp>
#include <boost/accumulators/statistics/parameters/quantile_probability.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost { namespace accumulators
{
@@ -243,4 +248,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
Modified: trunk/boost/accumulators/statistics/weighted_extended_p_square.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_extended_p_square.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_extended_p_square.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -239,8 +239,7 @@
}
}
- template<typename Args>
- result_type result(Args const &args) const
+ result_type result(dont_care) const
{
// for i in [1,probabilities.size()], return heights[i * 2]
detail::times2_iterator idx_begin = detail::make_times2_iterator(1);
Modified: trunk/boost/accumulators/statistics/weighted_median.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_median.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_median.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -133,8 +133,7 @@
// for boost::result_of
typedef float_type result_type;
- template<typename Args>
- with_p_square_cumulative_distribution_weighted_median_impl(Args const &args)
+ with_p_square_cumulative_distribution_weighted_median_impl(dont_care)
: is_dirty(true)
{
}
Modified: trunk/boost/accumulators/statistics/weighted_p_square_quantile.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_p_square_quantile.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_p_square_quantile.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -202,8 +202,7 @@
}
}
- template<typename Args>
- result_type result(Args const &args) const
+ result_type result(dont_care) const
{
return this->heights[2];
}
Modified: trunk/boost/accumulators/statistics/weighted_peaks_over_threshold.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_peaks_over_threshold.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_peaks_over_threshold.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -28,6 +28,11 @@
#include <boost/accumulators/statistics/sum.hpp>
#include <boost/accumulators/statistics/tail_variate.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost { namespace accumulators
{
@@ -274,4 +279,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
Modified: trunk/boost/accumulators/statistics/weighted_tail_mean.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_tail_mean.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_tail_mean.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -27,6 +27,11 @@
#include <boost/accumulators/statistics/tail_mean.hpp>
#include <boost/accumulators/statistics/parameters/quantile_probability.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost { namespace accumulators
{
@@ -155,4 +160,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
Modified: trunk/boost/accumulators/statistics/weighted_tail_quantile.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_tail_quantile.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_tail_quantile.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -28,6 +28,11 @@
#include <boost/accumulators/statistics/tail_quantile.hpp>
#include <boost/accumulators/statistics/parameters/quantile_probability.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost { namespace accumulators
{
@@ -132,4 +137,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
Modified: trunk/boost/accumulators/statistics/weighted_tail_variate_means.hpp
==============================================================================
--- trunk/boost/accumulators/statistics/weighted_tail_variate_means.hpp (original)
+++ trunk/boost/accumulators/statistics/weighted_tail_variate_means.hpp 2008-03-04 14:31:57 EST (Tue, 04 Mar 2008)
@@ -29,6 +29,11 @@
#include <boost/accumulators/statistics/weighted_tail_mean.hpp>
#include <boost/accumulators/statistics/parameters/quantile_probability.hpp>
+#ifdef _MSC_VER
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
namespace boost
{
// for _BinaryOperatrion2 in std::inner_product below
@@ -227,4 +232,8 @@
}} // namespace boost::accumulators
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
#endif
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