public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/53221] New: [C++11] basic_string lacks "copy/move constructors" with allocator
@ 2012-05-03 20:13 daniel.kruegler at googlemail dot com
  2012-05-03 20:42 ` [Bug libstdc++/53221] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-05-03 20:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53221

             Bug #: 53221
           Summary: [C++11] basic_string lacks "copy/move constructors"
                    with allocator
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.kruegler@googlemail.com


The library implementation of gcc 4.8.0 20120429 (experimental) misses the
following "copy/move constructors" with allocators:

basic_string(const basic_string&, const Allocator&);
basic_string(basic_string&&, const Allocator&);

These were added to the working draft with acceptance of the allocator proposal

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2554.pdf 

The following test case fails:

//---
#include <string>
#include <memory>

int main()
{
  std::string s1;
  std::string s2(s1, std::allocator<char>());
  std::string s3(static_cast<std::string&&>(s1), std::allocator<char>());
}
//---


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-12-22 14:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-03 20:13 [Bug libstdc++/53221] New: [C++11] basic_string lacks "copy/move constructors" with allocator daniel.kruegler at googlemail dot com
2012-05-03 20:42 ` [Bug libstdc++/53221] " redi at gcc dot gnu.org
2012-11-06 11:36 ` redi at gcc dot gnu.org
2013-03-22 14:45 ` jakub at gcc dot gnu.org
2013-03-24 17:53 ` redi at gcc dot gnu.org
2014-01-29 15:42 ` redi at gcc dot gnu.org
2014-01-29 15:42 ` redi at gcc dot gnu.org
2014-09-19 13:28 ` redi at gcc dot gnu.org
2014-12-22 14:06 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).