aboutsummaryrefslogtreecommitdiff
path: root/src/tinyformat.h
Commit message (Collapse)AuthorAgeFilesLines
* util: Update tinyformat to upstreamWladimir J. van der Laan2019-12-061-181/+278
| | | | | | | | | Last update was in 2017. Updates tinyformat to upstream commit 705e3f4e1de922069bf715746d35bd2364b1f98f. Re-apply bitcoin core specific changes. No changes that affect our use, as far as I can see, but this gets rid of the gcc `-Wimplicit-fallthrough` warnings, at least.
* tinyformat: Add doc to Bitcoin Core specific strprintfMarcoFalke2019-06-131-0/+1
|
* Fix typosDimitris Apostolou2018-03-211-2/+2
|
* [Util] Update tinyformat.hfanquake2017-10-291-1/+13
| | | | Updates `tinyformat.h` to commit c42f/tinyformat@689695c upstream.
* Declare single-argument (non-converting) constructors "explicit"practicalswift2017-08-161-4/+4
| | | | In order to avoid unintended implicit conversions.
* util: Throw tinyformat::format_error on formatting errorWladimir J. van der Laan2017-03-131-1/+8
| | | | | Throw tinyformat::format_error on formatting error instead of the `std::runtime_error`.
* util: Update tinyformatWladimir J. van der Laan2016-06-271-332/+368
| | | | | | | | | | | | | | | | Updates `tinyformat.h` to commit https://github.com/c42f/tinyformat/commit/3a33bbf65442432277eee079e83d3e8fac51730c upstream. Makes sure that our local changes are kept: - #3767 1b8fd35aadfad6a1e55391f02add6076c8c9ea8f Make tinyformat errors raise an exception instead of assert()ing - #4735 9b6d4c5cdc1ad7b12b8b7ba05125dad9ba2d396e Move strprintf define to tinyformat.h - #4748 6e5fd003e04b81115b6b164b21f048472d575535 include stdexcept (for std::exception) - #8000 9eaa0afa6ec5d3dd01e4d01121314ef51f2bc305 force USE_VARIADIC_TEMPLATES - Add `std::string format(const std::string &fmt...` added this at the time, as we want to be able to do `strprintf(_(...), ...)` Inspired by #8264.
* tinyformat: force USE_VARIADIC_TEMPLATESWladimir J. van der Laan2016-05-041-1/+1
| | | | | | | | Now that we started using c++11, force use of variadic templates. The autodetection may be wonky on some compilers, see discussion [here](https://github.com/bitcoin/bitcoin/pull/7982#issuecomment-216222357) and is unnecessary for us anyhow.
* Move `*Version()` functions to version.h/cppWladimir J. van der Laan2014-08-261-0/+1
|
* Move strprintf define to tinyformat.hWladimir J. van der Laan2014-08-201-0/+2
| | | | This avoids a dependency on util.h if just tinyformat is needed.
* Make tinyformat errors raise an exception instead of assert()ingWladimir J. van der Laan2014-02-281-1/+1
| | | | | | | | By default tinyformat errors such as 'wrong number of conversion specifiers in format string' cause an assertion failure. Raise an exception instead so that error handling can recover or can show an appropriate error.
* Typesafe strprintf/error/LogPrint functionsWladimir J. van der Laan2014-01-231-0/+1010
Switch to tinyformat-based formatting. Tinyformat is a typesafe drop-in replacement for C99 printf functions: https://github.com/c42f/tinyformat