I'm using a C++ compiler on a DSP that doesn't provide the bitset
class. Can anyone suggest a replacement for it? I've written a lot
of code that uses the bitset class (before I knew about the...
inadequacies of the compiler), so it needs to have approximately the
same interface.
Uh... Get a free library implementation, like STLport or GNU, and
"re-use" their bitset. AFAICT, most if not all of it is in the
header. If your compiler doesn't have it, maybe it still can compile
the one others have implemented...
Yes, that would be an ideal solution. And I have tried that, with the
bitset header from both Visual C++ and g++. But both of them depend on
other definitions in the vendor's library implementation. And I don't
think it would be a good idea to start copying more and more pieces of
the library in to my project.
However, I have not checked out STLport. I'll look in to that right
now. Thanks for the suggestion.
changes to the code beyond configuring the build options) on a TI DSP.