Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71736 - in trunk: boost/icl boost/icl/concept boost/icl/detail boost/icl/type_traits libs/icl/test/test_casual_
From: afojgo_at_[hidden]
Date: 2011-05-05 07:22:09


Author: jofaber
Date: 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
New Revision: 71736
URL: http://svn.boost.org/trac/boost/changeset/71736

Log:
Patch sent by Christoffer Jefferson, 04-22-2001.
The following patch does two things:
1) Cleans up a bunch of warnings to do with "unused parameter", which I get in clang.
2) Add a couple of headers which clang needs.

Text files modified:
   trunk/boost/icl/closed_interval.hpp | 2 +-
   trunk/boost/icl/concept/interval.hpp | 2 +-
   trunk/boost/icl/concept/interval_associator.hpp | 2 +-
   trunk/boost/icl/concept/interval_map.hpp | 2 +-
   trunk/boost/icl/continuous_interval.hpp | 2 +-
   trunk/boost/icl/detail/interval_map_algo.hpp | 10 +++++-----
   trunk/boost/icl/discrete_interval.hpp | 2 +-
   trunk/boost/icl/functors.hpp | 6 +++---
   trunk/boost/icl/left_open_interval.hpp | 2 +-
   trunk/boost/icl/open_interval.hpp | 2 +-
   trunk/boost/icl/right_open_interval.hpp | 2 +-
   trunk/boost/icl/type_traits/infinity.hpp | 2 ++
   trunk/libs/icl/test/test_casual_/test_casual.cpp | 1 +
   13 files changed, 20 insertions(+), 17 deletions(-)

Modified: trunk/boost/icl/closed_interval.hpp
==============================================================================
--- trunk/boost/icl/closed_interval.hpp (original)
+++ trunk/boost/icl/closed_interval.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -106,7 +106,7 @@
 template<class DomainT>
 struct value_size<icl::closed_interval<DomainT> >
 {
- static std::size_t apply(const icl::closed_interval<DomainT>& value)
+ static std::size_t apply(const icl::closed_interval<DomainT>&)
     { return 2; }
 };
 

Modified: trunk/boost/icl/concept/interval.hpp
==============================================================================
--- trunk/boost/icl/concept/interval.hpp (original)
+++ trunk/boost/icl/concept/interval.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -1055,7 +1055,7 @@
 template<class Type>
 inline typename enable_if<is_interval<Type>,
     typename size_type_of<interval_traits<Type> >::type>::type
-iterative_size(const Type& object)
+iterative_size(const Type&)
 {
     return 2;
 }

Modified: trunk/boost/icl/concept/interval_associator.hpp
==============================================================================
--- trunk/boost/icl/concept/interval_associator.hpp (original)
+++ trunk/boost/icl/concept/interval_associator.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -670,7 +670,7 @@
 typename enable_if< mpl::and_< is_intra_combinable<LeftT, RightT>
                              , mpl::or_<is_total<LeftT>, is_total<RightT> > >
                   , bool>::type
-intersects(const LeftT& left, const RightT& right)
+intersects(const LeftT&, const RightT&)
 {
     return true;
 }

Modified: trunk/boost/icl/concept/interval_map.hpp
==============================================================================
--- trunk/boost/icl/concept/interval_map.hpp (original)
+++ trunk/boost/icl/concept/interval_map.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -88,7 +88,7 @@
                              , is_total<Type>
                              , is_cross_derivative<Type, CoType> >
             , bool>::type
-contains(const Type& super, const CoType& sub)
+contains(const Type&, const CoType&)
 {
     return true;
 }

Modified: trunk/boost/icl/continuous_interval.hpp
==============================================================================
--- trunk/boost/icl/continuous_interval.hpp (original)
+++ trunk/boost/icl/continuous_interval.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -161,7 +161,7 @@
 template<class DomainT>
 struct value_size<icl::continuous_interval<DomainT> >
 {
- static std::size_t apply(const icl::continuous_interval<DomainT>& value)
+ static std::size_t apply(const icl::continuous_interval<DomainT>&)
     { return 2; }
 };
 

Modified: trunk/boost/icl/detail/interval_map_algo.hpp
==============================================================================
--- trunk/boost/icl/detail/interval_map_algo.hpp (original)
+++ trunk/boost/icl/detail/interval_map_algo.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -68,8 +68,8 @@
 
 template<class IntervalMapT>
 typename enable_if<is_total<IntervalMapT>, bool>::type
-contains(const IntervalMapT& container,
- const typename IntervalMapT::domain_type& key)
+contains(const IntervalMapT&,
+ const typename IntervalMapT::domain_type&)
 {
     return true;
 }
@@ -97,8 +97,8 @@
 
 template<class IntervalMapT>
 typename enable_if<is_total<IntervalMapT>, bool>::type
-contains(const IntervalMapT& container,
- const typename IntervalMapT::interval_type& sub_interval)
+contains(const IntervalMapT&,
+ const typename IntervalMapT::interval_type&)
 {
     return true;
 }
@@ -115,7 +115,7 @@
 template<class IntervalMapT, class IntervalSetT>
 typename enable_if<mpl::and_<is_total<IntervalMapT>
                             ,is_interval_set<IntervalSetT> >, bool>::type
-contains(const IntervalMapT& super_map, const IntervalSetT& sub_set)
+contains(const IntervalMapT&, const IntervalSetT&)
 {
     return true;
 }

Modified: trunk/boost/icl/discrete_interval.hpp
==============================================================================
--- trunk/boost/icl/discrete_interval.hpp (original)
+++ trunk/boost/icl/discrete_interval.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -158,7 +158,7 @@
 template<class DomainT>
 struct value_size<icl::discrete_interval<DomainT> >
 {
- static std::size_t apply(const icl::discrete_interval<DomainT>& value)
+ static std::size_t apply(const icl::discrete_interval<DomainT>&)
     { return 2; }
 };
 

Modified: trunk/boost/icl/functors.hpp
==============================================================================
--- trunk/boost/icl/functors.hpp (original)
+++ trunk/boost/icl/functors.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -37,7 +37,7 @@
         : public identity_based_inplace_combine<Type>
     {
         typedef inplace_identity<Type> type;
- void operator()(Type& object, const Type& operand)const{}
+ void operator()(Type&, const Type&)const{}
     };
 
     template<>
@@ -70,7 +70,7 @@
         void operator()(Type& object, const Type& operand)const
         { object += operand; }
 
- static void version(Type& object){}
+ static void version(Type&){}
     };
 
     template<>
@@ -98,7 +98,7 @@
         void operator()(Type& object, const Type& operand)const
         { object |= operand; }
 
- static void version(Type& object){}
+ static void version(Type&){}
     };
 
     template<>

Modified: trunk/boost/icl/left_open_interval.hpp
==============================================================================
--- trunk/boost/icl/left_open_interval.hpp (original)
+++ trunk/boost/icl/left_open_interval.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -108,7 +108,7 @@
 template<class DomainT, ICL_COMPARE Compare>
 struct value_size<icl::left_open_interval<DomainT,Compare> >
 {
- static std::size_t apply(const icl::left_open_interval<DomainT>& value)
+ static std::size_t apply(const icl::left_open_interval<DomainT>&)
     { return 2; }
 };
 

Modified: trunk/boost/icl/open_interval.hpp
==============================================================================
--- trunk/boost/icl/open_interval.hpp (original)
+++ trunk/boost/icl/open_interval.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -107,7 +107,7 @@
 template<class DomainT, ICL_COMPARE Compare>
 struct value_size<icl::open_interval<DomainT,Compare> >
 {
- static std::size_t apply(const icl::open_interval<DomainT>& value)
+ static std::size_t apply(const icl::open_interval<DomainT>&)
     { return 2; }
 };
 

Modified: trunk/boost/icl/right_open_interval.hpp
==============================================================================
--- trunk/boost/icl/right_open_interval.hpp (original)
+++ trunk/boost/icl/right_open_interval.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -108,7 +108,7 @@
 template<class DomainT, ICL_COMPARE Compare>
 struct value_size<icl::right_open_interval<DomainT,Compare> >
 {
- static std::size_t apply(const icl::right_open_interval<DomainT>& value)
+ static std::size_t apply(const icl::right_open_interval<DomainT>&)
     { return 2; }
 };
 

Modified: trunk/boost/icl/type_traits/infinity.hpp
==============================================================================
--- trunk/boost/icl/type_traits/infinity.hpp (original)
+++ trunk/boost/icl/type_traits/infinity.hpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -12,6 +12,8 @@
 #include <boost/static_assert.hpp>
 #include <boost/type_traits/ice.hpp>
 #include <boost/icl/type_traits/is_numeric.hpp>
+#include <boost/icl/type_traits/rep_type_of.hpp>
+#include <boost/icl/type_traits/size_type_of.hpp>
 #include <boost/mpl/and.hpp>
 #include <boost/mpl/if.hpp>
 

Modified: trunk/libs/icl/test/test_casual_/test_casual.cpp
==============================================================================
--- trunk/libs/icl/test/test_casual_/test_casual.cpp (original)
+++ trunk/libs/icl/test/test_casual_/test_casual.cpp 2011-05-05 07:22:07 EDT (Thu, 05 May 2011)
@@ -239,6 +239,7 @@
     BOOST_CHECK_EQUAL(m1.iterative_size(), m2.iterative_size());
 }
 
+
 BOOST_AUTO_TEST_CASE(casual)
 {
     typedef int 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