Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1908 wanted: c++11/c++0x, TR1

OTHER
open
nobody
Feature
none
Unknown
False
2013-02-15
2011-11-21
Jim Michaels
No

C++11 (c++0x) is needed sorely. I have a code base which requires it.

I should be able to do the following
#include <tr1/stdint.h>
using namespace std;
uint64_t ui=0xffffffffffffffffULL;

and its associated initializer lists of course

#include <windows.h>
#include <map>
#include <string>
map<string,HKEY> keys = {
{"HKEY_CLASSES_ROOT",HKEY_CLASSES_ROOT},
{"HKEY_CURRENT_CONFIG",HKEY_CURRENT_CONFIG},
{"HKEY_CURRENT_USER",HKEY_CURRENT_USER},
{"HKEY_LOCAL_MACHINE",HKEY_LOCAL_MACHINE},
{"HKEY_USERS",HKEY_USERS},
{"HKCR",HKEY_CLASSES_ROOT},
{"HKCC",HKEY_CURRENT_CONFIG},
{"HKCU",HKEY_CURRENT_USER},
{"HKLM",HKEY_LOCAL_MACHINE},
{"HKU",HKEY_USERS}
};

actually, the microsoft compiler uses i64 instead of LL for 64-bit constants. for example 0xffffffffffffffffi64U;
without this, it breaks a lot of microsoft code in many places.

Discussion

  • Jim Michaels
    Jim Michaels
    2012-01-21

    I see it partially implemented in 4.6.2, but <codecvt> is missing along with something in locale that defines wbuffer_convert.
    these are critical for making unicode streams.

     
  • Jim Michaels
    Jim Michaels
    2012-01-22

    oops. someone on a forum sais it was #include <codecvt> and this I could not find. it turns out in gcc it's codecvt.h, so it's there, but wbuffer_convert is not in any of he heraders, which is the other critical part.

    I did a
    find . -exec grep wbuffer_convert {} ; -print
    on windows using gnuwin32 unix utilities for windows and this did not reveal anything.

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-15

    Ticket moved from /p/mingw/feature-requests/101/

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-15

    • labels: GNU/BSD Compatibility Feature --> gcc, g++, relevance?
    • milestone: --> OTHER
    • type: --> Feature
    • resolution: --> none
    • category: --> Unknown
    • patch_attached: --> False