The reason is that boost does not push / push these pragmas in every file that needs data packing. These # include a separate file that does push (abi_prefix.hpp), and then another (abo_suffix.hp) that pop does.
This allows them to reuse the same #pragma pack code everywhere, which is convenient because it can vary between compilers.
It is completely safe. After pressing the #pragma button, a pop panel appears, it is simply included from another file. Therefore, you should simply disable this error.
source share