dynamic_bitset icon indicating copy to clipboard operation
dynamic_bitset copied to clipboard

With the constructor, assigning the default value does not work ?

Open Jxtopher opened this issue 1 year ago • 0 comments

Hello,

Consider the following code:

#include <boost/dynamic_bitset.hpp>
#include <iostream>

int main() {
    auto bitset = boost::dynamic_bitset<>(10, true);
    std::cout << bitset << std::endl;
    return 0;
}

The result I expected:

1111111111

But the result is

0000000001

This behavior is it normal ?

On Debian with libboost1.74-dev:amd64.

Thanks in advance

Jxtopher avatar Feb 14 '24 20:02 Jxtopher