0

I want to do

    int count=32;
    bitset<count>(a);

I have not put my entire code as it was irrelevant the basic thing is that I have to create a bitset of a given length and that length is calculated in the program. But this throws an error showing count cannot appear in a constant expression. What would be the solution to this.

Ram Sharma
  • 59
  • 1
  • 2
  • 10

0 Answers0