Message-ID: <394C0F3D.7C729AC0@jps.net> From: Dennis Yelle X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: bitset Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 42 Date: Sat, 17 Jun 2000 16:52:29 -0700 NNTP-Posting-Host: 216.119.53.73 X-Complaints-To: abuse AT onemain DOT com X-Trace: nntp1.onemain.com 961285841 216.119.53.73 (Sat, 17 Jun 2000 19:50:41 EDT) NNTP-Posting-Date: Sat, 17 Jun 2000 19:50:41 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com When I try to compile this: //============================ #include #include #include using namespace std; bitset<26> junk; int main() { junk[0] = 1; } //============================ Using: Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.952/specs gcc version 2.95.2 19991024 (release) I get this: c:/djgpp/lang/cxx/bitset: In method `bitset<26,long unsigned int>::reference::re ference(bitset<26,long unsigned int> &, long unsigned int)': c:/djgpp/lang/cxx/bitset:751: instantiated from `bitset<26,long unsigned int>: :operator [](long unsigned int)' bs.cpp:11: instantiated from here c:/djgpp/lang/cxx/bitset:377: `long unsigned int & _Base_bitset<1,long unsigned int>::_M_getword(long unsigned int)' is inaccessible c:/djgpp/lang/cxx/bitset:581: within this context Am I doing something wrong, or is bitset broken? Dennis Yelle -- I am a computer programmer and I am looking for a job. There is a link to my resume here: http://table.jps.net/~vert