This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47417] [4.6 Regression][C++0x] error: use of deleted function 'S::S(const S&)'
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jan 2011 12:43:57 +0000
- Subject: [Bug c++/47417] [4.6 Regression][C++0x] error: use of deleted function 'S::S(const S&)'
- Auto-submitted: auto-generated
- References: <bug-47417-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47417
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-25 12:43:56 UTC ---
which version of Boost are you using? I don't know if it's fixed now but older
releases (e.g. 1.42) did not support the current rvalue-reference model and
unordered_map has no copy-constructor, only a move constructor:
unordered_map(unordered_map&& other)
With the latest rvalue-reference model that cannot bind to an lvalue.
If you want to use GCC 4.6.0 and -std=c++0x then you need to use a version of
Boost that can handle it.