mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-07 17:41:11 +00:00
Remove wrong compile-time checks from printf (#1173)
This commit is contained in:
parent
01c631af95
commit
291ba837f2
@ -632,7 +632,6 @@ template <typename S, typename... Args,
|
|||||||
FMT_ENABLE_IF(internal::is_string<S>::value)>
|
FMT_ENABLE_IF(internal::is_string<S>::value)>
|
||||||
inline std::basic_string<FMT_CHAR(S)> sprintf(const S& format,
|
inline std::basic_string<FMT_CHAR(S)> sprintf(const S& format,
|
||||||
const Args&... args) {
|
const Args&... args) {
|
||||||
internal::check_format_string<Args...>(format);
|
|
||||||
typedef internal::buffer<FMT_CHAR(S)> buffer;
|
typedef internal::buffer<FMT_CHAR(S)> buffer;
|
||||||
typedef typename basic_printf_context_t<buffer>::type context;
|
typedef typename basic_printf_context_t<buffer>::type context;
|
||||||
format_arg_store<context, Args...> as{args...};
|
format_arg_store<context, Args...> as{args...};
|
||||||
@ -665,7 +664,6 @@ inline int vfprintf(
|
|||||||
template <typename S, typename... Args,
|
template <typename S, typename... Args,
|
||||||
FMT_ENABLE_IF(internal::is_string<S>::value)>
|
FMT_ENABLE_IF(internal::is_string<S>::value)>
|
||||||
inline int fprintf(std::FILE* f, const S& format, const Args&... args) {
|
inline int fprintf(std::FILE* f, const S& format, const Args&... args) {
|
||||||
internal::check_format_string<Args...>(format);
|
|
||||||
typedef internal::buffer<FMT_CHAR(S)> buffer;
|
typedef internal::buffer<FMT_CHAR(S)> buffer;
|
||||||
typedef typename basic_printf_context_t<buffer>::type context;
|
typedef typename basic_printf_context_t<buffer>::type context;
|
||||||
format_arg_store<context, Args...> as{args...};
|
format_arg_store<context, Args...> as{args...};
|
||||||
|
Loading…
Reference in New Issue
Block a user