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.

Reply via email to