Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71766 - in branches/release/boost/icl: . concept detail type_traits
From: afojgo_at_[hidden]
Date: 2011-05-06 13:56:52


Author: jofaber
Date: 2011-05-06 13:56:50 EDT (Fri, 06 May 2011)
New Revision: 71766
URL: http://svn.boost.org/trac/boost/changeset/71766

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.

Properties modified:
   branches/release/boost/icl/ (props changed)
Text files modified:
   branches/release/boost/icl/closed_interval.hpp | 2 +-
   branches/release/boost/icl/concept/interval.hpp | 2 +-
   branches/release/boost/icl/concept/interval_associator.hpp | 2 +-
   branches/release/boost/icl/concept/interval_map.hpp | 2 +-
   branches/release/boost/icl/continuous_interval.hpp | 2 +-
   branches/release/boost/icl/detail/interval_map_algo.hpp | 10 +++++-----
   branches/release/boost/icl/discrete_interval.hpp | 2 +-
   branches/release/boost/icl/functors.hpp | 6 +++---
   branches/release/boost/icl/left_open_interval.hpp | 2 +-
   branches/release/boost/icl/open_interval.hpp | 2 +-
   branches/release/boost/icl/right_open_interval.hpp | 2 +-
   branches/release/boost/icl/type_traits/infinity.hpp | 2 ++
   12 files changed, 19 insertions(+), 17 deletions(-)

Modified: branches/release/boost/icl/closed_interval.hpp
==============================================================================
--- branches/release/boost/icl/closed_interval.hpp (original)
+++ branches/release/boost/icl/closed_interval.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/concept/interval.hpp
==============================================================================
--- branches/release/boost/icl/concept/interval.hpp (original)
+++ branches/release/boost/icl/concept/interval.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/concept/interval_associator.hpp
==============================================================================
--- branches/release/boost/icl/concept/interval_associator.hpp (original)
+++ branches/release/boost/icl/concept/interval_associator.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/concept/interval_map.hpp
==============================================================================
--- branches/release/boost/icl/concept/interval_map.hpp (original)
+++ branches/release/boost/icl/concept/interval_map.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/continuous_interval.hpp
==============================================================================
--- branches/release/boost/icl/continuous_interval.hpp (original)
+++ branches/release/boost/icl/continuous_interval.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/detail/interval_map_algo.hpp
==============================================================================
--- branches/release/boost/icl/detail/interval_map_algo.hpp (original)
+++ branches/release/boost/icl/detail/interval_map_algo.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/discrete_interval.hpp
==============================================================================
--- branches/release/boost/icl/discrete_interval.hpp (original)
+++ branches/release/boost/icl/discrete_interval.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/functors.hpp
==============================================================================
--- branches/release/boost/icl/functors.hpp (original)
+++ branches/release/boost/icl/functors.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/left_open_interval.hpp
==============================================================================
--- branches/release/boost/icl/left_open_interval.hpp (original)
+++ branches/release/boost/icl/left_open_interval.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/open_interval.hpp
==============================================================================
--- branches/release/boost/icl/open_interval.hpp (original)
+++ branches/release/boost/icl/open_interval.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/right_open_interval.hpp
==============================================================================
--- branches/release/boost/icl/right_open_interval.hpp (original)
+++ branches/release/boost/icl/right_open_interval.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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: branches/release/boost/icl/type_traits/infinity.hpp
==============================================================================
--- branches/release/boost/icl/type_traits/infinity.hpp (original)
+++ branches/release/boost/icl/type_traits/infinity.hpp 2011-05-06 13:56:50 EDT (Fri, 06 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>
 


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