Skip to content

Replace boost::format with fmt::format in counters

Trying to replace boost::format with fmt::format turned out not to be possible without switching to fmtlib 8 which will not happen before LCG > 102 (102b or 103, see https://sft.its.cern.ch/jira/browse/SPI-2175).

See discussion from !1349 (merged):

  • @sponce started a discussion: (+5 comments)

    I've now pushed the move to fmt for formatting accumulators rather than boost. But... fmt is buggy, as you can see here : https://godbolt.org/z/rn4Ybzrb3 where it does not respect the requested width when argument is 0 (and does for 1 !!!). This is version 7.1.3, the one in LCG. of course version 8 has the fix already. so what do we do ? Consequence are a couple of failing tests here and there when people check manually counters as text and an extra space is present.

Edited by Marco Clemencic
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information