Re: [Mingw-w64-public] [[deprecated]]

2015-07-15 Thread papa
Thanks for the reply, one more question. Am I to use -std=gnu++1y, in addition -std=c++14 or should I remove -std=c++14. TIA From: Riot Sent: Wednesday, July 15, 2015 8:40 PM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] [[deprecated]] Use -std=gnu++1y On 16 Jul 2

Re: [Mingw-w64-public] C++14

2015-07-08 Thread papa
Yes, Riot, that was exactly what I was looking for. An example always goes a long, long way. Thanks so much. Ruben, thanks s much for the links. Those links answer all the questions I had about GCC support for c++11/14. Thanks man! -Original Message- From: Riot Sent: Wednesday, July

[Mingw-w64-public] C++14

2015-07-08 Thread papa
C++14 includes the [[deprecated("reason")]] attribute, but in my MinGW-64 with GCC-5.1 it creates a warning saying: warning: 'deprecated' attribute directive ignored [-Wattributes]| How can I find out which features of C++11 and C++14 are available in g++5.1? Thanks--

Re: [Mingw-w64-public] unique_ptr and operator<

2015-07-05 Thread papa
You know what, it is true, I forgot the main(), but, bud, you nailed it! Ruben, it seems to me that you have a crystal ball or perhaps, somehow, you are able to access my computer and thus find out exactly what I mean, since I cannot, sometimes, express myself in the best way possible. If you don

[Mingw-w64-public] unique_ptr and operator<

2015-07-05 Thread papa
Can anyone, pleeese, tell me why this extractor operator is not causing this error: C:\tmp\adfs\main.cpp|20|error: no match for 'operator<<' (operand types are 'std::wostream {aka std::basic_ostream}' and 'std::unique_ptr')| namespace abc{ class MyClass{ private: int nuestro; public

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread papa
In an earlier and a different posting, I express my concern about MS-Windows' std::string/locales, what is the point of wstring, I asked, if at the end there is no reliable uft-8/16/32 support for. them. The best thing to do is to use boost's or some other 3rd party, if true utf support is need

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread papa
This one is way cooler http://www.bing.com/search?q=toupper&src=IE-TopResult&FORM=IETR02&conversationid= From: Alexandre Pereira Nunes Sent: Tuesday, June 30, 2015 7:37 PM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] toUpper() [cut] This may also help in future:

Re: [Mingw-w64-public] toUpper()

2015-07-01 Thread papa
std::wstring source(L"Hello World"); std::wstring destination; destination.resize(source.size()); std::transform (source.begin(), source.end(), destination.begin(), (int(*)(int))std::toupper); The above code is what did the trick, do not ask how, I am still digesting it. However, any suggestions

[Mingw-w64-public] std::locale

2015-07-01 Thread papa
In this web page: http://en.cppreference.com/w/cpp/locale/toupper I got this code: #include #include #include int main() { wchar_t c = L'\u017f'; // Latin small letter Long S ('ſ') std::cout << std::hex << std::showbase; std::cout << "in the default locale, toupper(" << (std::wint_

[Mingw-w64-public] toUpper()

2015-06-30 Thread papa
I would like to write a function to capitalize letters, say... std::wstring toUpper(const std::wstring wstr){ for ( auto it = wstr.begin(); it != wstr.end(); ++it){ global_wapstr.append(std::towupper(&it)); } } This doesn’t work, but doesn’t the standard already have something like std::

[Mingw-w64-public] wchar_t vs char

2015-06-30 Thread papa
I have been reading that wchat_t, and therefore wstring, is neither UTF-8 nor a UTF-16 character set. So, what is wstring good for then? --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com --

Re: [Mingw-w64-public] More porting problems :(

2015-06-30 Thread papa
Thanks for the help Alexandre. Look man, it could not have at a better time; porting the code from VC++ to g++ has not been a easy thing for me, I am so used to the flexibility of VS that now that I am using the actual C++ standard I realize the facilities and traps provided Microsoft. The last

[Mingw-w64-public] More porting problems :(

2015-06-29 Thread papa
The latest MinGW64 complains about this code: #include #include #include bool abc::Sound::PlayIt(){ //return !!sndPlaySoundW(Soundfile.c_str(), SND_FILENAME); return !!PlaySoundW(Soundfile.c_str(), NULL, SND_FILENAME/*SND_ASYNC*/); } It says In function `abc::Sound::PlayIt()': C:/Win32

Re: [Mingw-w64-public] no function forstd::ifstream::open(const wchar_t*)?

2015-06-29 Thread papa
The standard C++ has major, and I mean MAJOR draw-back!! It cannot handle any other stream format that ASCII. 1988 standards in 2015? I cannot believe it!! I am sure that there are 3rd or 4th party libraries that can handle this issue, but than again, that is that... a 3rd || 4th party library. I

[Mingw-w64-public] no function for std::ifstream::open(const wchar_t*)?

2015-06-29 Thread papa
Nice, thank you, I took your advice. I have now modify the code. I have other problems, though. This code: std::wifstream infile; infile.open( getFileName().c_str() ); error: no matching function for call to 'std::basic_ifstream::open(const wchar_t*)' I found this discussion http://stackoverfl

Re: [Mingw-w64-public] throw(...) in MinGW

2015-06-29 Thread papa
Thanks Ruben for the help. To answer your question, yes, I am. I was also using -std=gnu++14. However, I am now compiling only with –std::c++11, but to no avail. From: Ruben Van Boxem Sent: Monday, June 29, 2015 2:27 AM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] th

[Mingw-w64-public] throw(...) in MinGW

2015-06-28 Thread papa
In VS2013, I declare the member functions like this: void setString(const std::wstring& _str) throw(...); But now that I am switching to MinGW, I get a complain from the compiler saying: error: expected type-specifier before '...' token throw(...) { How can I fix this problem? Thanks --- This e