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
Victor Zverovich
361911dd18
Use preinstalled version of cmake on travis
2017-07-13 19:06:20 -04:00
Victor Zverovich
9ea183aaba
Fix MSVC build
2017-07-13 19:00:21 -04:00
Victor Zverovich
8f4b918c5b
Check argument index
2017-07-12 13:24:51 -04:00
Victor Zverovich
4193485b43
Remove test files
2017-07-12 13:15:06 -04:00
Victor Zverovich
07123e8ff3
Use Ubuntu Trusty on Travis for a new CMake
2017-07-12 13:13:36 -04:00
Victor Zverovich
586d63636a
Implement more efficient handling of large number of format arguments
2017-07-12 00:26:54 -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
12252152ac
CStringRef -> cstring_view
2017-03-26 15:13:10 -07:00
Victor Zverovich
5aa8d6ea21
Return locale by value
2017-03-25 08:57:23 -07:00
Victor Zverovich
32ec13f149
Switch to C++ locale
2017-03-25 08:20:06 -07:00
Victor Zverovich
b4f4b7e21a
Clean the buffer API ( #477 )
2017-03-12 09:48:21 -07:00
Victor Zverovich
f423e46835
Replace clear() with resize(0) and data_ -> store_
2017-03-11 08:30:15 -08:00
Victor Zverovich
c03f55ec3a
Add Kodi (xbmc) to the list of projects using fmt
2017-03-11 08:28:52 -08:00
Victor Zverovich
23b8c24da4
Add noexcept
2017-03-11 07:38:16 -08:00
Victor Zverovich
7175bd8ae6
Fix error on MinGW
2017-03-09 06:09:43 -08:00