bitset error 
Author Message
 bitset error

Have anyone tried to use bitset? it gives me an error in operator<< (Visual C5.0 Enterprise edition):

        ....
         const istream::sentry _Ok(_I);
        if(_Ok)
        ...

D:\Program Files\DevStudio\VC\INCLUDE\bitset(204) : error C2039: 'sentry' : is not a member of 'istream'
D:\Program Files\DevStudio\VC\INCLUDE\bitset(204) : error C2734: 'sentry' : const object must be initialized if not extern
D:\Program Files\DevStudio\VC\INCLUDE\bitset(204) : error C2059: syntax error : 'identifier'
D:\Program Files\DevStudio\VC\INCLUDE\bitset(205) : error C2065: '_Ok' : undeclared identifier
Error executing cl.exe.

--
Yuriy Salnikov  (to reply remove NOSPAM from e-address)



Sun, 22 Apr 2001 03:00:00 GMT  
 bitset error
Are you forgetting "std" by any chance? Either use const
std::istream::sentry or add the line "using std::istream" at the top of
the file without the quotes. This worked for me in VC++ 6.0. It should
for 5.0 -> have you applied SP3 for 5.0?
Vasi
Quote:
-----Original Message-----

Posted At: Wednesday, November 04, 1998 5:34 PM
Posted To: stl
Conversation: bitset error
Subject: bitset error

Have anyone tried to use bitset? it gives me an error in operator<<
(Visual C5.0 Enterprise edition):

        ....
         const istream::sentry _Ok(_I);
        if(_Ok)
        ...

D:\Program Files\DevStudio\VC\INCLUDE\bitset(204) : error C2039:
'sentry' : is not a member of 'istream'
D:\Program Files\DevStudio\VC\INCLUDE\bitset(204) : error C2734:
'sentry' : const object must be initialized if not extern
D:\Program Files\DevStudio\VC\INCLUDE\bitset(204) : error C2059: syntax
error : 'identifier'
D:\Program Files\DevStudio\VC\INCLUDE\bitset(205) : error C2065: '_Ok' :
undeclared identifier
Error executing cl.exe.

--
Yuriy Salnikov  (to reply remove NOSPAM from e-address)



Sun, 22 Apr 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Compiler Error C2783 when using Bitsets.

2. Bitset examples from the FAQ (unsigned char?)

3. libclc bitset import/export

4. libclc: bitset interface, new final vote

5. libclc: bitset interface

6. Help in finding the bitsets?

7. C++ to C# std::bitset

8. BITSET

9. bitsets

10. bitset

11. bitset?

12. template-Klasse bitset

 

 
Powered by phpBB® Forum Software