incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject [MSVC 9.0] 'Unknown' enumerator conflict
Date Tue, 18 Sep 2007 18:32:16 GMT
  The 27.istream.unformatted.get.cpp and 27.istream.fmat.arith.cpp tests
are failed to compile
on MSVC 9.0 due to enum member name conflict:

tests\include\rw_streambuf.h(58) : error C2365: 'Unknown' :
redefinition; previous definition was 'enumerator'
        C:\Program Files\Microsoft
SDKs\Windows\v6.0A\include\winioctl.h(1635) : see declaration of
'Unknown'

rw_streambuf.h:
-----
enum MemFun {
    // bitmask with a bit for each virtual member function
[...]
    // bit OR-ed with MemFun bits
    Throw     = 0x1000,
    Failure   = 0x2000,
    Unknown   = 0x4000
};
-----

winioctl.h:
-----
typedef enum _MEDIA_TYPE {
    Unknown,                // Format is unknown
    F5_1Pt2_512,            // 5.25", 1.2MB,  512 bytes/sector
    F3_1Pt44_512,           // 3.5",  1.44MB, 512 bytes/sector
    F3_2Pt88_512,           // 3.5",  2.88MB, 512 bytes/sector
-----

  We need to rename it to something. I can't invent the suitable name,
unless adding the unredscores :)

  BTW it seems that this member is not used for now. Maybe we should
just remove it?

Farid.

Mime
View raw message