This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ Locale ??
- From: Papa <papa at arbolone dot ca>
- To: gcc-help Mailing List <gcc-help at gcc dot gnu dot org>
- Date: Mon, 1 May 2017 23:57:43 -0400
- Subject: g++ Locale ??
- Authentication-results: sourceware.org; auth=none
COLLECT_GCC=C:\gnu\mingw-w64\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=C:/gnu/mingw-w64/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/6.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
OS: Win 8.1
class{
private:
std::locale current_locale;
public:
void setGlobalLocale(const std::string& str) {
current_locale.global(std::locale(str)); //<< RunTimeError>>
}
};
I'm writing a wrapper for std::locale, but right at start-up the first
problem.
Why would this member function give me a Run Time Error?
Any help is much appreciated.
--
ArbolOne.ca
Using FireFox and Thunderbird.
ArbolOne is composed of a group of students and volunteers
dedicated to providing free services to charitable organizations.