I have a 7-byte/56-bit bitset that upon construction sets the first bit to one:
boost::dynamic_bitset<> b(56, 1);
After construction, I'd like to place an integer value (say 2019) into bits 4 through 15. I'm curious if there is a simple way within boost to do this without bitwise operations? Basically, I want to set a range of bits to an integer value that I know is small enough to fit into those bits. Thanks for any advice.