Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
b48ffc14
Commit
b48ffc14
authored
Jul 25, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update changelog
parent
3268531b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
ChangeLog.rst
ChangeLog.rst
+42
-0
No files found.
ChangeLog.rst
View file @
b48ffc14
...
...
@@ -24,9 +24,51 @@
prints "value = 4,2".
* Introduced ``fmt::prepare`` function that allows precompilation of format
strings:
.. code:: c++
auto f = fmt::prepare<int>("{}");
std::string s = f.format(42); // can be called multiple times to format
// different values
This API is experimental and will likely change in the next minor release.
Thanks `@stryku (Mateusz Janek) <https://github.com/stryku>`_.
* Fixed handling of dynamic width in chrono formatter:
.. code:: c++
auto s = fmt::format("{0:{1}%H:%M:%S}", std::chrono::seconds(12345), 12);
// ^ width argument index ^ width
// s == "03:25:45 "
Thanks Howard Hinnant.
* Added `fmt::format` and `fmt::vformat` overloads that take `text_style`
(`#993 <https://github.com/fmtlib/fmt/issues/993>`_,
`#994 <https://github.com/fmtlib/fmt/pull/994>`_):
.. code:: c++
#include <fmt/color.h>
std::string message = fmt::format(fmt::emphasis::bold | fg(fmt::color::red),
"The answer is {}.", 42);
Thanks `@Naios (Denis Blank) <https://github.com/Naios>`_.
* Stopped setting ``CMAKE_BUILD_TYPE`` if fmt is a subproject
(`#1081 <https://github.com/fmtlib/fmt/issues/1081>`_).
* Various fixes (`#980 <https://github.com/fmtlib/fmt/issues/980>`_,
`#995 <https://github.com/fmtlib/fmt/pull/995>`_
`#998 <https://github.com/fmtlib/fmt/pull/998>`_).
Thanks `@DanielaE (Daniela Engert) <https://github.com/DanielaE>`_,
`@mwinterb <https://github.com/mwinterb>`_.
5.3.0 - 2018-12-28
------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment