Subj : what's wrong with the std::bitset or me? To : borland.public.cpp.borlandcpp From : "Warren Wo" Date : Sun Jun 29 2003 10:44 pm Hi, I use c++ builder 6.0 .Coding as below,something is wrong: First: .... std::bitset<100> bSet; bSet[1] = 1; .... Here is the compile message: [c++ Error]_bitset.h(89):E2021 Array must have at least one element. But the borland c++ builder help says:"An individual bit in the bitset can be accessed using the subscript operation...bset_one[3] = 1;..." Second: Another question.Why codeing like below is not ok: .... std::string s; std::string s1 = "101010"; bitset<10> bSet(s1); s = bSet.to_string(); .... what's wrong with the codes above ? Thanks. .