Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81303 - trunk/boost/icl
From: afojgo_at_[hidden]
Date: 2012-11-11 20:23:29


Author: jofaber
Date: 2012-11-11 20:23:28 EST (Sun, 11 Nov 2012)
New Revision: 81303
URL: http://svn.boost.org/trac/boost/changeset/81303

Log:
Fixed clang errors with assign operators.
Text files modified:
   trunk/boost/icl/interval_map.hpp | 7 +++++++
   trunk/boost/icl/interval_set.hpp | 7 +++++++
   trunk/boost/icl/separate_interval_set.hpp | 7 +++++++
   trunk/boost/icl/split_interval_map.hpp | 9 ++++++++-
   trunk/boost/icl/split_interval_set.hpp | 7 +++++++
   5 files changed, 36 insertions(+), 1 deletions(-)

Modified: trunk/boost/icl/interval_map.hpp
==============================================================================
--- trunk/boost/icl/interval_map.hpp (original)
+++ trunk/boost/icl/interval_map.hpp 2012-11-11 20:23:28 EST (Sun, 11 Nov 2012)
@@ -94,6 +94,13 @@
 
 
     /// Assignment operator
+ interval_map& operator = (const interval_map& src)
+ {
+ base_type::operator=(src);
+ return *this;
+ }
+
+ /// Assignment operator for base type
     template<class SubType>
     interval_map& operator =
         (const interval_base_map<SubType,DomainT,CodomainT,

Modified: trunk/boost/icl/interval_set.hpp
==============================================================================
--- trunk/boost/icl/interval_set.hpp (original)
+++ trunk/boost/icl/interval_set.hpp 2012-11-11 20:23:28 EST (Sun, 11 Nov 2012)
@@ -116,6 +116,13 @@
     }
 
     /// Assignment operator
+ interval_set& operator = (const interval_set& src)
+ {
+ base_type::operator=(src);
+ return *this;
+ }
+
+ /// Assignment operator for base type
     template<class SubType>
     interval_set& operator =
         (const interval_base_set<SubType,DomainT,Compare,Interval,Alloc>& src)

Modified: trunk/boost/icl/separate_interval_set.hpp
==============================================================================
--- trunk/boost/icl/separate_interval_set.hpp (original)
+++ trunk/boost/icl/separate_interval_set.hpp 2012-11-11 20:23:28 EST (Sun, 11 Nov 2012)
@@ -107,6 +107,13 @@
     explicit separate_interval_set(const interval_type& itv): base_type() { this->add(itv); }
 
     /// Assignment operator
+ separate_interval_set& operator = (const separate_interval_set& src)
+ {
+ base_type::operator=(src);
+ return *this;
+ }
+
+ /// Assignment operator for base type
     template<class SubType>
     separate_interval_set& operator =
         (const interval_base_set<SubType,DomainT,Compare,Interval,Alloc>& src)

Modified: trunk/boost/icl/split_interval_map.hpp
==============================================================================
--- trunk/boost/icl/split_interval_map.hpp (original)
+++ trunk/boost/icl/split_interval_map.hpp 2012-11-11 20:23:28 EST (Sun, 11 Nov 2012)
@@ -78,7 +78,14 @@
     explicit split_interval_map(const value_type& value_pair): base_type()
     { this->add(value_pair); }
 
- /// Copy assignment operator
+ /// Assignment operator
+ split_interval_map& operator = (const split_interval_map& src)
+ {
+ base_type::operator=(src);
+ return *this;
+ }
+
+ /// Assignment operator for base type
     template<class SubType>
     split_interval_map& operator =
         (const interval_base_map<SubType,DomainT,CodomainT,

Modified: trunk/boost/icl/split_interval_set.hpp
==============================================================================
--- trunk/boost/icl/split_interval_set.hpp (original)
+++ trunk/boost/icl/split_interval_set.hpp 2012-11-11 20:23:28 EST (Sun, 11 Nov 2012)
@@ -105,6 +105,13 @@
     explicit split_interval_set(const domain_type& itv): base_type() { this->add(itv); }
 
     /// Assignment operator
+ split_interval_set& operator = (const split_interval_set& src)
+ {
+ base_type::operator=(src);
+ return *this;
+ }
+
+ /// Assignment operator for base type
     template<class SubType>
     split_interval_set& operator =
         (const interval_base_set<SubType,DomainT,Compare,Interval,Alloc>& src)


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