From d1ae63032d95e54f4f1e6fddb79f76a6cc83a72b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 25 Oct 2015 08:58:05 -0700 Subject: [PATCH 1/9] Update ChangeLog.rst --- ChangeLog.rst | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index 54f854c9..8fdea642 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,11 +1,11 @@ 2.0.0 - TBD ----------- -* [Breaking] Made ``BasicStringRef`` comparison operators compare string +* [Breaking] ``BasicStringRef`` comparison operators now compare string content, not pointers (`#183 `_). -* Made pthreads dependency introduced by Google Test optional +* Dependency on pthreads introduced by Google Test is now optional (`#185 `_). * Further improved performance of ``fmt::Writer`` on integer formatting @@ -27,9 +27,8 @@ Thanks to `@rpopescu `_ and `@gabime (Gabi Melman) `_. -* [Breaking] Implemented formatting of objects of user-defined types that - provide an overloaded ``std::ostream`` insertion operator (``operator<<``) - with ``fmt::(s)printf`` +* [Breaking] ``fmt::(s)printf`` now supports formatting of objects of user-defined types + that provide an overloaded ``std::ostream`` insertion operator (``operator<<``) (`#201 `_): .. code:: c++ @@ -45,7 +44,7 @@ Thanks to `@jackyf (Eugene V. Lyubimkin) `_ and Dave Johansen. * Added an option to disable use of IOStreams when ``FMT_USE_IOSTREAMS`` - is set to 0 before including ``format.h`` + is defined as 0 before including ``format.h`` (`#205 `_, `#208 `_). Thanks to `@JodiTheTigger `_. @@ -54,7 +53,7 @@ `_ section to the documentation. -* Made documentation build script compatible with Python 3 +* Documentation build script is now compatible with Python 3 (`#209 `_). * Fixed documentation layout issues on medium screen sizes @@ -64,6 +63,10 @@ ``crtdbg.h`` when ``_CRTDBG_MAP_ALLOC`` is set (`#211 `_). +* Fixed an overload conflict in MSVC when ``/Zc:wchar_t-`` option is specified + (`#214 `_). + Thanks to `@slavanap (Vyacheslav Napadovsky) `_. + 1.1.0 - 2015-03-06 ------------------ From b92c60c17113f4e566fc2162d675482d715d5930 Mon Sep 17 00:00:00 2001 From: Dmitriy Date: Mon, 26 Oct 2015 13:11:04 +0300 Subject: [PATCH 2/9] MSVC 2015 supports noexcept --- format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/format.h b/format.h index d6371dd5..aea41bfb 100644 --- a/format.h +++ b/format.h @@ -162,7 +162,8 @@ inline uint32_t clzll(uint64_t x) { // Define FMT_USE_NOEXCEPT to make C++ Format use noexcept (C++11 feature). #ifndef FMT_NOEXCEPT # if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \ - (FMT_GCC_VERSION >= 408 && FMT_HAS_GXX_CXX11) + (FMT_GCC_VERSION >= 408 && FMT_HAS_GXX_CXX11) || \ + _MSC_VER >= 1900 # define FMT_NOEXCEPT noexcept # else # define FMT_NOEXCEPT throw() From f27f848bb8c6809689759eb1445ef36b6d8d17bd Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 27 Oct 2015 06:55:25 -0700 Subject: [PATCH 3/9] Update ChangeLog.rst --- ChangeLog.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index 8fdea642..c234c61b 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -67,6 +67,10 @@ (`#214 `_). Thanks to `@slavanap (Vyacheslav Napadovsky) `_. +* ``noexcept`` is now used when compiling with MSVC2015. + (`#215 `_). + Thanks to `@dmkrepo (Dmitriy) `_. + 1.1.0 - 2015-03-06 ------------------ From 87a2a61d5600af94ff9c7bbd11c7ecd41c31b7d4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 27 Oct 2015 07:03:42 -0700 Subject: [PATCH 4/9] Update ChangeLog.rst --- ChangeLog.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index c234c61b..0ea25f55 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,6 +1,16 @@ 2.0.0 - TBD ----------- +* [Breaking] The library name has been changed from ``format`` to ``cppformat`` + for consistency with project name and to avoid potential conflicts + (`#178 `_). + Thanks to `@jackyf (Eugene V. Lyubimkin) `_. + +* [Breaking] Headers are now installed in + ``${CMAKE_INSTALL_PREFIX}/include/cppformat`` + (`#178 `_). + Thanks to `@jackyf (Eugene V. Lyubimkin) `_. + * [Breaking] ``BasicStringRef`` comparison operators now compare string content, not pointers (`#183 `_). @@ -67,7 +77,7 @@ (`#214 `_). Thanks to `@slavanap (Vyacheslav Napadovsky) `_. -* ``noexcept`` is now used when compiling with MSVC2015. +* ``noexcept`` is now used when compiling with MSVC2015 (`#215 `_). Thanks to `@dmkrepo (Dmitriy) `_. From b91eea55494b190acbacea01bf8dff4889dd236b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 27 Oct 2015 08:22:11 -0700 Subject: [PATCH 5/9] Update ChangeLog.rst --- ChangeLog.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index 0ea25f55..0aa05d78 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,8 +1,12 @@ 2.0.0 - TBD ----------- -* [Breaking] The library name has been changed from ``format`` to ``cppformat`` - for consistency with project name and to avoid potential conflicts +* Fixed out-of-tree documentation build + (`#177 `_). + Thanks to `@jackyf (Eugene V. Lyubimkin) `_. + +* [Breaking] Changed the library name from ``format`` to ``cppformat`` + for consistency with the project name and to avoid potential conflicts (`#178 `_). Thanks to `@jackyf (Eugene V. Lyubimkin) `_. From 247fe7a2a619e11920ab969c397d0bdeefe9a77b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 27 Oct 2015 08:27:07 -0700 Subject: [PATCH 6/9] Update ChangeLog.rst --- ChangeLog.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index 0aa05d78..6bbfe3e8 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -35,11 +35,13 @@ (`#188 `_). * Fixed warnings in Clang and MSVC2013 - (`#190 `_, + (`#175 `_, + `#190 `_, `#191 `_, `#194 `_). - Thanks to `@rpopescu `_ and - `@gabime (Gabi Melman) `_. + Thanks to `@rpopescu `_, + `@gabime (Gabi Melman) `_ and + `@cubicool (Jeremy Moles) `_. * [Breaking] ``fmt::(s)printf`` now supports formatting of objects of user-defined types that provide an overloaded ``std::ostream`` insertion operator (``operator<<``) From 4822044dc937ed3b29c9082b8e3e2b1cd850ca99 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 27 Oct 2015 08:41:10 -0700 Subject: [PATCH 7/9] Update ChangeLog.rst --- ChangeLog.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index 6bbfe3e8..dfc9c558 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,6 +1,16 @@ 2.0.0 - TBD ----------- +* Placed the anonymous namespace within ``fmt`` namespace for the header-only + configuration + (`#171 `_). + Thanks to `@alfps (Alf P. Steinbach) `_. + +* Added an option to disable use of ``windows.h`` when ``FMT_USE_WINDOWS_H`` + is defined as 0 before including ``format.h`` + (`#171 `_). + Thanks to `@alfps (Alf P. Steinbach) `_. + * Fixed out-of-tree documentation build (`#177 `_). Thanks to `@jackyf (Eugene V. Lyubimkin) `_. From def5d983de3a31856bff01c3ea2b65140071dd6a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 27 Oct 2015 21:55:57 -0700 Subject: [PATCH 8/9] Update ChangeLog.rst --- ChangeLog.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index dfc9c558..2645426d 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,6 +1,22 @@ 2.0.0 - TBD ----------- +* [Breaking] Changed default ``bool`` format to textual, "true" or "false": + + .. code:: c++ + + fmt::print("{}", true); // prints "true" + + To print ``bool`` as a number use numeric format specifier such as ``d``: + + .. code:: c++ + + fmt::print("{:d}", true); // prints "1" + +* Improved support for custom character types + (`#171 `_). + Thanks to `@alfps (Alf P. Steinbach) `_. + * Placed the anonymous namespace within ``fmt`` namespace for the header-only configuration (`#171 `_). From 9bbdf3b4c9e52c799da0f0b014a57c294ff24af9 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 27 Oct 2015 21:59:42 -0700 Subject: [PATCH 9/9] Update ChangeLog.rst --- ChangeLog.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index 2645426d..1379679f 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,7 +1,8 @@ 2.0.0 - TBD ----------- -* [Breaking] Changed default ``bool`` format to textual, "true" or "false": +* [Breaking] Changed default ``bool`` format to textual, "true" or "false" + (`#170 `_): .. code:: c++