Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Glen Fernandes Newsgroups: comp.std.c++ Subject: Defect Report: wstring_convert methods do not take allocator instance Date: Fri, 14 Dec 2012 09:10:18 -0800 (PST) Organization: unknown Lines: 16 Sender: std-cpp-request@vandevoorde.com Approved: stephen.clamage@oracle.com Message-ID: NNTP-Posting-Host: KPn78xBXgJ9gWlcsZ3DeH8caXCHsHUxv83SuRh7hxnQ= Content-Type: text/plain; charset=ISO-8859-1 X-Trace: news.albasani.net oNc6AXrsGDu7j0QX+JoThwS1b2CntXt/gDBUZ5OQqPoUsBqjS/oaRwvQQN+reBZnCuJqzCrZY8CMPpaSemHE0A== X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Fri, 14 Dec 2012 17:09:55 +0000 (UTC) X-Mailer: Perl5 Mail::Internet v2.05 X-Submission-Address: std-cpp-submit@vandevoorde.com Cancel-Lock: sha1:QP/5Jfi2LTVG4AlnF5fkGhTWn1A= X-Original-Date: Wed, 21 Nov 2012 18:42:13 -0800 (PST) Xref: csiph.com comp.std.c++:561 The wstring_convert class template, described in 22.3.3.2.2 [conversions.string], does not support custom stateful allocators. It only supports custom stateless allocators. The to_bytes member function returns basic_string, Byte_alloc> but it does not take an instance of Byte_alloc to pass to the constructor of the basic_string. Similarly the from_bytes member function returns basic_string, Wide_alloc> but it does not take an instance of Wide_alloc to pass to the constructor of the basic_string. This makes these two member functions and the wstring_convert class template not usable when Wide_alloc or Byte_alloc are stateful allocators. Glen Fernandes -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]