bitpit
bitpit copied to clipboard
voloctree: reduce visibitiy of PABLO messages
In release mode, VolOctree patch will display PABLO messages only when their severity is WARNING or higher.
To achieve this I had to rework a bit the logger: loggers that were sharing the same buffer were sharing also the visibility settings, but this was not the intended behaviour. Other than fixing this problem, the reworked logger should be faster.
I had to make some changes to make the code work with GCC 12 (and hopefully clang, tests will confirm this). Now, stream operators for bitpit classes are declared inside the bitpit namespace. Since at least one of the arguments passed to those stream operators are in the bitpit namespace, the compiler is still able to pick the correct overload thanks to ADL (Argument-dependent lookup);
Can you rebase on master, please? Thanks!