Skip to content

Commit

Permalink
Remove wrong compile-time checks from printf (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed May 24, 2019
1 parent 01c631a commit 291ba83
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/fmt/printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,6 @@ template <typename S, typename... Args,
FMT_ENABLE_IF(internal::is_string<S>::value)>
inline std::basic_string<FMT_CHAR(S)> sprintf(const S& format,
const Args&... args) {
internal::check_format_string<Args...>(format);
typedef internal::buffer<FMT_CHAR(S)> buffer;
typedef typename basic_printf_context_t<buffer>::type context;
format_arg_store<context, Args...> as{args...};
Expand Down Expand Up @@ -665,7 +664,6 @@ inline int vfprintf(
template <typename S, typename... Args,
FMT_ENABLE_IF(internal::is_string<S>::value)>
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 typename basic_printf_context_t<buffer>::type context;
format_arg_store<context, Args...> as{args...};
Expand Down

0 comments on commit 291ba83

Please sign in to comment.