What is the best way to initialize a bitfield struct in C++?
You could always do this in your constructor:
memset(&bflag, 0, sizeof bflag);
Union the bitfield struct with something easier to initialize to 0.
You could always do this in your constructor:
memset(&bflag, 0, sizeof bflag);
Union the bitfield struct with something easier to initialize to 0.