Bug 65124 - wstring_convert not recognised as a template class.
Summary: wstring_convert not recognised as a template class.
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-19 17:14 UTC by Iain Sandoe
Modified: 2015-02-19 18:47 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2015-02-19 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iain Sandoe 2015-02-19 17:14:20 UTC
the following code snippet:

#include <codecvt>
 
namespace lldb_private {
    
    class Editline
    {
    private:
     std::wstring_convert<std::codecvt_utf8<wchar_t>> m_utf8conv;
 
     };
}

g++ -std=c++11 -S 

gives:
wstring-convert.cpp:8:11: error: ‘wstring_convert’ in namespace ‘std’ does not name a template type
      std::wstring_convert<std::codecvt_utf8<wchar_t>> m_utf8conv;

on both linux and darwin.
Comment 1 Jonathan Wakely 2015-02-19 18:47:38 UTC
#include <locale>