Subject: [Boost-bugs] [Boost C++ Libraries] #7871: [ICL][c++11] split_interval_map: move-assignment removes implicit copy-assignment
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-09 11:46:44
#7871: [ICL][c++11] split_interval_map: move-assignment removes implicit copy-
assignment
------------------------------+---------------------------------------------
Reporter: opium | Owner: jofaber
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: ICL
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
split_interval_map has no explicit copy-assignment operator, so using
copy-assignment with c++11 causes compilation error:
{{{
#include <boost/icl/split_interval_map.hpp>
int main ()
{
boost::icl::split_interval_map <int, int> A, B;
A = B;
return 0;
}
}}}
Compilation error:
{{{
test.cpp: In function 'int main()':
test.cpp:7:7: error: use of deleted function
'boost::icl::split_interval_map<int, int>&
boost::icl::split_interval_map<int, int>::operator=(const
boost::icl::split_interval_map<int, int>&)'
In file included from test.cpp:2:0:
/home/opium/dev_libs/boost_1_52_0/include/boost-
1_52/boost/icl/split_interval_map.hpp:33:7: note:
'boost::icl::split_interval_map<int, int>&
boost::icl::split_interval_map<int, int>::operator=(const
boost::icl::split_interval_map<int, int>&)' is implicitly declared as
deleted because 'boost::icl::split_interval_map<int, int>' declares a move
constructor or move assignment operator
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7871> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC