问题
How can I initialize a boost::dynamic_bitset
from std::bitset
? The simplest solution is a for loop:
for(int i=0;i<bitset_size;i++)
my_dynamic_bitset[i] = my_bitset[i];
Is there any shorter or faster way to do this?
来源:https://stackoverflow.com/questions/32326934/how-to-initialize-a-boostdynamic-bitset-from-stdbitset