Is there a 'catch' with FastFormat?

前端 未结 6 2096
天命终不由人
天命终不由人 2021-02-05 11:16

I just read about the FastFormat C++ i/o formatting library, and it seems too good to be true: Faster even than printf, typesafe, and with what I consider a pleasing interface:<

6条回答
  •  野性不改
    2021-02-05 11:44

    Although FastFormat is a good library there are a number of issues with it:

    • Limited formatting support, in particular the following features are not supported:
      • Leading zeros (or any other non-space padding)
      • Octal/hexadecimal encoding
      • Runtime width/alignment specification
    • The library is quite big for a relatively small task of formatting and has even bigger dependency (STLSoft).

提交回复
热议问题