Alex Alabuzhev
89654cd127
to_wstring added
2017-08-27 18:52:57 +02:00
Victor Zverovich
37eb419af2
Fix noreturn attribute detection ( #555 )
2017-08-20 09:39:28 -07:00
Manu343726
14d8534900
Explicitly cast range length to std::size_t to prevent conversion warnings
2017-08-20 06:52:52 -07:00
Manu343726
c2201ce02e
Accept wide chars as integers to prevent conversion warning
2017-08-20 06:52:52 -07:00
Henry Schreiner
6efbccb387
Add one more CMake warning fix
...
This will remove one more warning that can't be stopped from a calling CMakeLists. This possibly should be set to new at some point (CMake 3.3 behavior would be different / better), as well as 0048.
2017-08-19 07:03:56 -07:00
Victor Zverovich
032c83807f
Fix a segfault in test on glibc 2.26 #551 , take 2
2017-08-10 09:27:06 -07:00
Victor Zverovich
6655e804c4
Fix a segfault in test on glibc 2.26 #551
2017-08-06 20:18:04 -07:00
Mário Feroldi
d16c4d20f8
Suppress warning about missing noreturn attribute ( #549 )
...
Suppress warning about missing noreturn attribute
Adding `[[noreturn]]` to `report_unknown_type` suppresses the Clang/GCC `-Wmissing-noreturn` warning:
Clang outputs:
.../fmt/fmt/format.cc:294:74: warning:
function 'report_unknown_type' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]
...code, const char *type) {
^
GCC outputs:
.../fmt/fmt/format.cc:294:74: warning: function might be candidate for
attribute 'noreturn' [-Wsuggest-attribute=noreturn]
...code, const char *type) {
^
2017-07-21 20:47:01 -07:00
Bjorn Fahller
9c56a8ce5c
Make format_arg() accept class hierarchies
...
If a base class can be formatted, it is assumed
that the hierarchy can be formatted from the base
class. The idiom is not uncommon with ostreams.
2017-07-18 06:16:46 -07:00
Victor Zverovich
ca0e38304c
Update README.rst
2017-07-16 14:12:48 -07:00
Alexander Bock
81790d726f
Update format.h to remove C4574 error on MSVC 14.2
...
Similar to the Pullrequest #539 , `_SECURE_SCL` caused the same `warning C4574: '_SECURE_SCL' is defined to be '0': did you mean to use '#if _SECURE_SCL'`. `_SECURE_SCL` is defined in the `MSVC/14.10.25017/include/yvals.h` by Microsoft itself
2017-07-14 15:29:57 -04:00
Lee, Byoung-young
3028344380
Fix undefined behavior in UDL macro
...
`FMT_USE_USER_DEFINED_LITERALS` macro expands to `defined()` which is undefined behavior.
2017-07-13 19:10:11 -04:00
Jonathan Müller
4045d7fea2
Fix warning about missing ' character
2017-07-11 20:45:17 +02:00
Alexander Bock
89c3bc585c
Remove warning C4668 in MSVC for FMT_GCC_VERSION and FMT_HAS_GXX_CXX11
2017-07-10 13:59:08 -04:00
Alexander Bock
4af9421ff0
Adding OpenSpace to the list of projects
2017-07-07 20:59:39 -07:00
Evgeniy Gerasimenko
1a398b5404
Fixed CMake CMP0048 warning.
2017-07-05 16:55:46 -07:00
Victor Zverovich
589ccc1675
Bump version
2017-07-01 10:37:45 -07:00
Victor Zverovich
c38170461d
Add an error on broken includes
2017-07-01 10:09:25 -07:00
Victor Zverovich
16bdd8424f
Update scripts
2017-07-01 07:30:51 -07:00
Victor Zverovich
b492316d5d
Update version list
2017-07-01 06:57:32 -07:00
Victor Zverovich
91f4ce02b6
Automatically update version in release script ( #431 )
2017-07-01 06:41:30 -07:00
Jonathan Müller
398343897f
Update version
2017-06-27 19:02:24 +02:00
Jonathan Müller
749ed39d79
Bump version number and update changelog
2017-06-25 19:40:23 +02:00
Alex Martin
aba72982df
remove 'FMT_CPPFORMAT' CMake option
2017-06-25 08:08:26 -07:00
Victor Zverovich
e8ef103799
Fix undefined-var-template warning on clang when not compiling with -std=c++11
2017-06-25 07:49:31 -07:00
Alex Martin
5e23fff052
remove unnecessary method
2017-06-25 06:07:57 -07:00
Victor Zverovich
f61e71ccb9
Add Drake to projects
2017-06-22 06:31:50 -07:00
Victor Zverovich
d9f0c58c65
Add Lyft Envoy to the list of projects
2017-06-22 06:20:51 -07:00
Victor Zverovich
569c5bdbf1
Workaround broken __builtin_clz in clang with MS codegen ( #519 )
2017-06-17 07:57:07 -07:00
Jonathan Müller
eafc6a3292
Update Changelog
2017-06-14 18:20:51 +02:00
Ian Bell
dc8c943372
Describe cmake use of header-only target
2017-05-29 16:31:52 -07:00
Mario Werner
ac5484c4e7
add alias targets with fmt namespace
...
For the consumer it should not matter if fmt has been added to the
project as subdirectory or via find_package. With the alias targets
the library can be always imported via fmt::fmt.
2017-05-25 14:36:16 +03:00
Mario Werner
746adc5e71
added new namespace to the header only target in the find package test
2017-05-25 14:36:16 +03:00
Bjoern Thiel
048d2aec27
CMake imported targets should be namespaced
2017-05-21 14:17:12 +03:00
Tomek Rozen
e14bac62a0
Changing ArgArray template argument from unsigned to size_t
...
Each instantiation of ArgArray template uses sizeof operator, which
returns a std::size_t value. GCC 7.1 warns about invalid conversion
(error: conversion to ‘unsigned int’ from ‘long unsigned
int’ may alter its value [-Werror=conversion]).
2017-05-20 07:19:16 +02:00
Victor Zverovich
0284a2893a
Use Ubuntu Trusty on Travis for a new CMake
2017-05-20 08:07:57 +03:00
Victor Zverovich
07ed421521
Fix handling of implicit conversion to integral types larger than int ( #507 )
2017-05-06 10:23:20 -07:00
Victor Zverovich
c56d345985
Don't define WIN32_LEAN_AND_MEAN in header-only mode
2017-05-06 09:13:32 -07:00
Victor Zverovich
dcfd40a1b8
Revert #456
...
Revert #456 because it causes issues for known types (#495 ) and is not C++98-compatible.
2017-05-06 08:36:54 -07:00
Andreas Schönle
79f11dbaa7
Allow compiling and using as DLL in windows ( #502 )
...
* printf.h fixed to compile clean - need to check whether this is the right
thing to do
* fix warnings and errors in test compiles with BUILD_SHARED_LIBS
* did requested changes and added one change to allow all tests to succeed
in windows DLL
2017-05-05 14:58:09 +02:00
Jonathan Müller
52aabbe7ef
Workaround MSVC lookup issue in ArgFormatterBase
...
Fixes #505 .
2017-05-05 14:40:58 +02:00
Quentin Buathier
4423490d0b
Don't include the world with WIN32_LEAN_AND_MEAN ( #503 )
2017-05-03 21:22:01 +02:00
郭荣飞
d49f206183
fmt::internal::is_streamable works on gcc 4.7
...
i test the the code on https://gcc.godbolt.org/ , and only gcc 4.7 works,
gcc 4.6 fail to complie
2017-04-16 21:27:28 -07:00
Graham Inggs
7a4ac9ec9c
add SOURCELINK_SUFFIX for compatibility with Sphinx 1.5
...
With Sphinx 1.5, this is needed by searchtools.js to display the source
snippets (see sphinx-doc/sphinx#2454 ).
With earlier Sphinx versions, this is a no-op because the undefined variable
will evaluate to an empty string.
2017-04-15 08:42:05 -07:00
Ivan Shynkarenka
82bb4f4e89
Fix Visual Studio 2017 new warning (C4244: 'argument': conversion from 'int' to 'const char', possible loss of data)
2017-04-15 08:38:43 -07:00
effzeh
73ca9948fe
Fix FormatBuf implementation ( #491 )
...
Fixes #491 (and probably #480 ) Before, the put-area of the custom streambuf
implementation was (sometimes) incorrectly extended beyond the writeable buffer.
The new implementation is in some cases not as efficient as the old, but avoids
to write into uninitialized memory.
2017-04-08 09:07:33 -07:00
Arthur Danskin
cbac016cce
%.f should have zero precision, not default precision
2017-04-08 07:18:10 -07:00
Victor Zverovich
c03f55ec3a
Add Kodi (xbmc) to the list of projects using fmt
2017-03-11 08:28:52 -08:00
Victor Zverovich
fbc8ea8c3e
False -> FalseType ( #483 )
2017-03-08 07:17:08 -08:00
Pierre Kestener
6c3aa28c94
fix for nvcc_wrapper compiler
2017-03-08 06:20:52 -08:00