[Mingw-w64-public] g++ throwing compiler out with the bathwater

2016-07-16 Thread Jim Michaels
build 0708 (internally 0609) #include #include #include namespace str { //string type for S like std::string, std::wstring, etc. int compare(std::string& first const, std::string& second const, bool iCase=false, size_t firstPos=0) const { ... } I had thought the problem might be th

Re: [Mingw-w64-public] g++ throwing compiler out with the bathwater

2016-07-16 Thread lh mouse
The only valid syntax to declare a const reference to an std::string is 'std::string const & first' or 'const std::string & first'. Putting the const qualifier elsewhere is an error. Get a C++ book, teach yourself and stop spamming this list. Your questions are not only too basic but also off-topi

[Mingw-w64-public] Detecting if __builtin_bswap16 is supported

2016-07-16 Thread dw
I recently proposed a patch that removed some inline asm and replaced it with builtins. Fixing/removing inline asm is sort of a hobby of mine. Among other things