Andreas Schönle
5bce2c0cef
Allow compiling and using as DLL in windows ( #502 )
...
* 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
(cherry picked from commit 79f11dbaa7 )
2017-06-09 12:42:32 +02:00
Tomek Rozen
c75f6dcd30
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]).
(cherry picked from commit e14bac62a0 )
2017-06-08 12:08:50 +02:00
Victor Zverovich
ecd0994c15
Use Ubuntu Trusty on Travis for a new CMake
...
(cherry picked from commit 0284a2893a )
2017-06-08 12:08:50 +02:00
Victor Zverovich
7859c3493f
Fix handling of implicit conversion to integral types larger than int ( #507 )
...
(cherry picked from commit 07ed421521 )
2017-06-08 12:08:50 +02:00
Victor Zverovich
4fca31c497
Don't define WIN32_LEAN_AND_MEAN in header-only mode
...
(cherry picked from commit c56d345985 )
2017-06-08 12:08:50 +02:00
Jonathan Müller
e6df023916
Workaround MSVC lookup issue in ArgFormatterBase
...
Fixes #505 .
(cherry picked from commit 52aabbe7ef )
2017-06-08 12:08:50 +02:00
Quentin Buathier
1934d9e5d9
Don't include the world with WIN32_LEAN_AND_MEAN ( #503 )
...
(cherry picked from commit 4423490d0b )
2017-06-08 12:08:50 +02:00
Victor Zverovich
9270e66700
Remove redundant include ( #479 )
...
(cherry picked from commit cc736e7611 )
2017-06-08 11:33:01 +02:00
Victor Zverovich
9589bf05de
Fix error on MinGW
...
(cherry picked from commit db0d54f855 )
2017-06-08 11:32:49 +02:00
Victor Zverovich
aad76bf4c1
Document which header defines formatting functions
...
(cherry picked from commit e208fbff52 )
2017-06-08 11:32:39 +02:00
Magnus Bjerke Vik
0bed09caaf
Fix Android not being detected with latest NDK toolchain ( #458 )
...
When using the NDK 13b toolchain standalone or with CMake, ANDROID is not defined,
but __ANDROID__ is defined instead.
(cherry picked from commit bc6af7548b )
2017-06-08 11:29:36 +02:00
Victor Zverovich
0e5a4422c2
Workaround an nvcc bug
...
(cherry picked from commit 9e9ad57f58 )
2017-06-08 11:29:32 +02:00
Calum Robinson
72484cc191
Fix missing intrinsic when included from C++/CLI
...
Managed C++ code doesn't have the _BitScanReverse* intrinsics, we must use the fallback code for count_digits etc.
(cherry picked from commit a2596d685d )
2017-06-08 11:29:27 +02:00
Eric Fiselier
80bfa855a2
Don't export the -std=c++11 flag from the fmt target
...
(cherry picked from commit b9aaa507fc )
2017-06-08 11:29:16 +02:00
Victor Zverovich
850405f0b0
Fix test compilation for FreeBSD ( #433 )
...
(cherry picked from commit fac5546321 )
2017-06-08 11:28:48 +02:00
Victor Zverovich
a55df13598
Fix collision with global convert function ( #425 )
...
(cherry picked from commit 796beaaddb )
2017-06-08 11:28:43 +02:00
Victor Zverovich
baedba07ca
Fix signbit detection ( #423 )
...
(cherry picked from commit def687462c )
2017-06-08 11:28:39 +02:00
Victor Zverovich
b9a20d761a
Add version macro FMT_VERSION ( #411 )
...
(cherry picked from commit f5b1c16e2c )
# Conflicts:
# CMakeLists.txt
2017-06-08 11:27:51 +02:00
Victor Zverovich
ba0c3b957f
Fix warnings on C++98
...
(cherry picked from commit cfd00af37a )
2017-06-08 11:27:11 +02:00
Victor Zverovich
4a24a38861
Fix warnings
...
(cherry picked from commit 6274401919 )
# Conflicts:
# fmt/printf.h
# test/string-test.cc
2017-06-08 11:26:18 +02:00
Jonathan Müller
5c69ecdd5e
Create pull_request_template
...
(cherry picked from commit 8cef95f7c3 )
2017-06-08 11:23:13 +02:00
Victor Zverovich
29732d44bb
Add CONTRIBUTING file
...
(cherry picked from commit 922ae4896b )
2017-06-08 11:23:09 +02:00
Chen Hayat
abee8f95ec
Fix Klockwork compilation warning
...
(cherry picked from commit 05ba3e7888 )
2017-06-08 11:23:04 +02:00
Victor Zverovich
48ba0f2aa2
FMT_NULLPTR -> FMT_NULL and improve formatting
...
(cherry picked from commit 1daddec151 )
# Conflicts:
# fmt/printf.h
# fmt/string.h
# fmt/time.h
2017-06-08 11:22:50 +02:00
Jonathan Müller
d3a9d03138
Fix missing '>'
...
(cherry picked from commit d8867a2b07 )
2017-06-08 11:21:55 +02:00
Jonathan Müller
7aaa693fb3
Add extern templates for format_float
...
Fixes #413 .
(cherry picked from commit 6c0125785b )
2017-06-08 11:21:49 +02:00
alabuzhev
267bed868f
Using FMT_NULLPTR instead of literal 0
...
(cherry picked from commit 49ccb2e449 )
2017-06-08 11:21:41 +02:00
Victor Zverovich
f0a7da0219
argument index -> argument id
...
(cherry picked from commit 7ce7def515 )
2017-06-08 11:18:34 +02:00
Lectem
5a5c3a3c25
fix newer clang warnings
...
(cherry picked from commit 8f455c10b0 )
2017-06-08 11:17:45 +02:00
Jonathan Müller
7fa8f8fa48
Update version
2016-11-01 09:24:49 +01:00
Jonathan Müller
1ef8b4a5de
Update version to 3.0.1
2016-10-31 22:02:46 +01:00
Jonathan Müller
4a66897fb6
Update ChangeLog
2016-10-31 22:02:43 +01:00
Jan Hellwig
63639cba98
Fix Windows compilation with -fno-exceptions ( #405 )
...
(cherry picked from commit 15d0f32773 )
2016-10-31 22:02:42 +01:00
Jan Hellwig
2baf2a5e2c
Fix Linux compilation with -fno-exceptions ( #402 )
...
(cherry picked from commit 8c63ea432c )
2016-10-31 22:02:42 +01:00
Victor Zverovich
fb9015b3a1
CHAR_WIDTH -> CHAR_SIZE to avoid collision with ISO/IEC TS 18661-1:2014 macro
...
(cherry picked from commit abbefd7166 )
2016-10-28 19:42:17 +02:00
chronoxor
0a0c2c9cdd
Remove unnecessary "fmt/" prefix which should be maintained with additional include_directories() in each project. ( #397 )
...
(cherry picked from commit 1500f00525 )
2016-10-23 12:17:31 +02:00
Victor Zverovich
1c9a674d24
Fix compilation on Cygwin ( #388 )
...
(cherry picked from commit cee50b7572 )
2016-10-23 12:17:30 +02:00
Jean-Michaël Celerier
6e6adf431f
Add FMT_OVERRIDE macro to allow specifying overriding functions in c++11 compilers
...
(cherry picked from commit 9ec3bea2d6 )
2016-10-23 12:17:30 +02:00
Hugh Wang
f8289ba1da
Fix compilation on Android.
...
(cherry picked from commit 5f26b5da28 )
2016-10-23 12:17:30 +02:00
Victor Zverovich
79100a21bc
Correct syntax
...
(cherry picked from commit 04335aeadb )
2016-10-23 12:17:30 +02:00
Victor Zverovich
f4a417f8fb
Fix handling of unsigned char strings ( #373 )
...
(cherry picked from commit a79c7b4e8f )
2016-10-23 12:17:30 +02:00
Victor Zverovich
5047091ad8
Add 'a' and 'A' format specifiers
...
(cherry picked from commit 53f9e7f65c )
2016-10-23 12:17:30 +02:00
Victor Zverovich
f880a6cedf
Add CUAUV, Seastar and ScyllaDB to the list of projects that use fmt
...
(cherry picked from commit 2bf59a97c6 )
2016-10-23 12:01:53 +02:00
Victor Zverovich
7459ce15d3
Don't use -std compiler flag if CMAKE_CXX_STANDARD is specified ( #366 )
...
(cherry picked from commit 12a6027b40 )
2016-10-23 12:01:42 +02:00
Victor Zverovich
f0a0674040
Use a heuristic to detect empty strftime result ( #367 )
...
(cherry picked from commit a5d0adf395 )
2016-10-23 12:01:33 +02:00
Victor Zverovich
c79174e1c0
Correct buffer growth when formatting time ( #367 )
...
(cherry picked from commit 1a23f9c274 )
2016-10-23 12:01:17 +02:00
Victor Zverovich
f116a28134
Add "n" to integer formatting types
...
(cherry picked from commit ed30108918 )
2016-10-23 11:59:32 +02:00
Taro Matsuzawa aka. btm
6d91a801a4
Update usage.rst: change Homebrew package name
...
(cherry picked from commit 1dbc6bd1fc )
2016-10-23 11:59:05 +02:00
Nils Moehrle
e3de93298b
Remove unreachable code below FMT_THROW
...
(cherry picked from commit c8c9973669 )
2016-10-23 11:58:44 +02:00
Victor Zverovich
6f27f98103
Update readme
...
(cherry picked from commit c110c6eca7 )
2016-10-23 11:55:51 +02:00