forked from fmtlib/fmt
Merge branch 'master' of github.com:cppformat/cppformat
This commit is contained in:
@ -1,11 +1,52 @@
|
|||||||
2.0.0 - TBD
|
2.0.0 - TBD
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
* [Breaking] Made ``BasicStringRef`` comparison operators compare string
|
* [Breaking] Changed default ``bool`` format to textual, "true" or "false"
|
||||||
|
(`#170 <https://github.com/cppformat/cppformat/issues/170>`_):
|
||||||
|
|
||||||
|
.. 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 <https://github.com/cppformat/cppformat/issues/171>`_).
|
||||||
|
Thanks to `@alfps (Alf P. Steinbach) <https://github.com/alfps>`_.
|
||||||
|
|
||||||
|
* Placed the anonymous namespace within ``fmt`` namespace for the header-only
|
||||||
|
configuration
|
||||||
|
(`#171 <https://github.com/cppformat/cppformat/issues/171>`_).
|
||||||
|
Thanks to `@alfps (Alf P. Steinbach) <https://github.com/alfps>`_.
|
||||||
|
|
||||||
|
* Added an option to disable use of ``windows.h`` when ``FMT_USE_WINDOWS_H``
|
||||||
|
is defined as 0 before including ``format.h``
|
||||||
|
(`#171 <https://github.com/cppformat/cppformat/issues/171>`_).
|
||||||
|
Thanks to `@alfps (Alf P. Steinbach) <https://github.com/alfps>`_.
|
||||||
|
|
||||||
|
* Fixed out-of-tree documentation build
|
||||||
|
(`#177 <https://github.com/cppformat/cppformat/issues/177>`_).
|
||||||
|
Thanks to `@jackyf (Eugene V. Lyubimkin) <https://github.com/jackyf>`_.
|
||||||
|
|
||||||
|
* [Breaking] Changed the library name from ``format`` to ``cppformat``
|
||||||
|
for consistency with the project name and to avoid potential conflicts
|
||||||
|
(`#178 <https://github.com/cppformat/cppformat/issues/178>`_).
|
||||||
|
Thanks to `@jackyf (Eugene V. Lyubimkin) <https://github.com/jackyf>`_.
|
||||||
|
|
||||||
|
* [Breaking] Headers are now installed in
|
||||||
|
``${CMAKE_INSTALL_PREFIX}/include/cppformat``
|
||||||
|
(`#178 <https://github.com/cppformat/cppformat/issues/178>`_).
|
||||||
|
Thanks to `@jackyf (Eugene V. Lyubimkin) <https://github.com/jackyf>`_.
|
||||||
|
|
||||||
|
* [Breaking] ``BasicStringRef`` comparison operators now compare string
|
||||||
content, not pointers
|
content, not pointers
|
||||||
(`#183 <https://github.com/cppformat/cppformat/issues/183>`_).
|
(`#183 <https://github.com/cppformat/cppformat/issues/183>`_).
|
||||||
|
|
||||||
* Made pthreads dependency introduced by Google Test optional
|
* Dependency on pthreads introduced by Google Test is now optional
|
||||||
(`#185 <https://github.com/cppformat/cppformat/issues/185>`_).
|
(`#185 <https://github.com/cppformat/cppformat/issues/185>`_).
|
||||||
|
|
||||||
* Further improved performance of ``fmt::Writer`` on integer formatting
|
* Further improved performance of ``fmt::Writer`` on integer formatting
|
||||||
@ -21,15 +62,16 @@
|
|||||||
(`#188 <https://github.com/cppformat/cppformat/issues/188>`_).
|
(`#188 <https://github.com/cppformat/cppformat/issues/188>`_).
|
||||||
|
|
||||||
* Fixed warnings in Clang and MSVC2013
|
* Fixed warnings in Clang and MSVC2013
|
||||||
(`#190 <https://github.com/cppformat/cppformat/issues/190>`_,
|
(`#175 <https://github.com/cppformat/cppformat/issues/175>`_,
|
||||||
|
`#190 <https://github.com/cppformat/cppformat/issues/190>`_,
|
||||||
`#191 <https://github.com/cppformat/cppformat/pull/191>`_,
|
`#191 <https://github.com/cppformat/cppformat/pull/191>`_,
|
||||||
`#194 <https://github.com/cppformat/cppformat/issues/194>`_).
|
`#194 <https://github.com/cppformat/cppformat/issues/194>`_).
|
||||||
Thanks to `@rpopescu <https://github.com/rpopescu>`_ and
|
Thanks to `@rpopescu <https://github.com/rpopescu>`_,
|
||||||
`@gabime (Gabi Melman) <https://github.com/gabime>`_.
|
`@gabime (Gabi Melman) <https://github.com/gabime>`_ and
|
||||||
|
`@cubicool (Jeremy Moles) <https://github.com/cubicool>`_.
|
||||||
|
|
||||||
* [Breaking] Implemented formatting of objects of user-defined types that
|
* [Breaking] ``fmt::(s)printf`` now supports formatting of objects of user-defined types
|
||||||
provide an overloaded ``std::ostream`` insertion operator (``operator<<``)
|
that provide an overloaded ``std::ostream`` insertion operator (``operator<<``)
|
||||||
with ``fmt::(s)printf``
|
|
||||||
(`#201 <https://github.com/cppformat/cppformat/issues/201>`_):
|
(`#201 <https://github.com/cppformat/cppformat/issues/201>`_):
|
||||||
|
|
||||||
.. code:: c++
|
.. code:: c++
|
||||||
@ -45,7 +87,7 @@
|
|||||||
Thanks to `@jackyf (Eugene V. Lyubimkin) <https://github.com/jackyf>`_ and Dave Johansen.
|
Thanks to `@jackyf (Eugene V. Lyubimkin) <https://github.com/jackyf>`_ and Dave Johansen.
|
||||||
|
|
||||||
* Added an option to disable use of IOStreams when ``FMT_USE_IOSTREAMS``
|
* 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 <https://github.com/cppformat/cppformat/issues/205>`_,
|
(`#205 <https://github.com/cppformat/cppformat/issues/205>`_,
|
||||||
`#208 <https://github.com/cppformat/cppformat/pull/208>`_).
|
`#208 <https://github.com/cppformat/cppformat/pull/208>`_).
|
||||||
Thanks to `@JodiTheTigger <https://github.com/JodiTheTigger>`_.
|
Thanks to `@JodiTheTigger <https://github.com/JodiTheTigger>`_.
|
||||||
@ -54,7 +96,7 @@
|
|||||||
<http://cppformat.github.io/dev/usage.html#building-the-documentation>`_
|
<http://cppformat.github.io/dev/usage.html#building-the-documentation>`_
|
||||||
section to the documentation.
|
section to the documentation.
|
||||||
|
|
||||||
* Made documentation build script compatible with Python 3
|
* Documentation build script is now compatible with Python 3
|
||||||
(`#209 <https://github.com/cppformat/cppformat/issues/209>`_).
|
(`#209 <https://github.com/cppformat/cppformat/issues/209>`_).
|
||||||
|
|
||||||
* Fixed documentation layout issues on medium screen sizes
|
* Fixed documentation layout issues on medium screen sizes
|
||||||
@ -64,6 +106,14 @@
|
|||||||
``crtdbg.h`` when ``_CRTDBG_MAP_ALLOC`` is set
|
``crtdbg.h`` when ``_CRTDBG_MAP_ALLOC`` is set
|
||||||
(`#211 <https://github.com/cppformat/cppformat/issues/211>`_).
|
(`#211 <https://github.com/cppformat/cppformat/issues/211>`_).
|
||||||
|
|
||||||
|
* Fixed an overload conflict in MSVC when ``/Zc:wchar_t-`` option is specified
|
||||||
|
(`#214 <https://github.com/cppformat/cppformat/pull/214>`_).
|
||||||
|
Thanks to `@slavanap (Vyacheslav Napadovsky) <https://github.com/slavanap>`_.
|
||||||
|
|
||||||
|
* ``noexcept`` is now used when compiling with MSVC2015
|
||||||
|
(`#215 <https://github.com/cppformat/cppformat/pull/215>`_).
|
||||||
|
Thanks to `@dmkrepo (Dmitriy) <https://github.com/dmkrepo>`_.
|
||||||
|
|
||||||
1.1.0 - 2015-03-06
|
1.1.0 - 2015-03-06
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
3
format.h
3
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).
|
// Define FMT_USE_NOEXCEPT to make C++ Format use noexcept (C++11 feature).
|
||||||
#ifndef FMT_NOEXCEPT
|
#ifndef FMT_NOEXCEPT
|
||||||
# if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_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
|
# define FMT_NOEXCEPT noexcept
|
||||||
# else
|
# else
|
||||||
# define FMT_NOEXCEPT throw()
|
# define FMT_NOEXCEPT throw()
|
||||||
|
Reference in New Issue
Block a user