Bitboards using STL bitset
Posted: 08 Nov 2005, 01:52
The bitset class template looks convenient for a lot of reasons, but I've only seen it mentioned once or twice in passing with regard to chess programming. Is there some horrible problem with the class I should be aware of?
I haven't run any tests on the bitwise operator speeds, but sizeof(bitset<64>) returns 8, so it's not exactly a memory hog.
I originally asked this over at the chess-engines group, but this place seems much more lively.
Thanks
I haven't run any tests on the bitwise operator speeds, but sizeof(bitset<64>) returns 8, so it's not exactly a memory hog.
I originally asked this over at the chess-engines group, but this place seems much more lively.
Thanks