mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-25 18:35:18 +00:00
Fix docs
This commit is contained in:
parent
8c2e15aed5
commit
37f599b1a1
@ -93,7 +93,8 @@ def build_docs(version='dev', **kwargs):
|
|||||||
FMT_API= \
|
FMT_API= \
|
||||||
"FMT_BEGIN_NAMESPACE=namespace fmt {{" \
|
"FMT_BEGIN_NAMESPACE=namespace fmt {{" \
|
||||||
"FMT_END_NAMESPACE=}}" \
|
"FMT_END_NAMESPACE=}}" \
|
||||||
"FMT_STRING_ALIAS=1"
|
"FMT_STRING_ALIAS=1" \
|
||||||
|
"FMT_ENABLE_IF_T(B, T)=T"
|
||||||
EXCLUDE_SYMBOLS = fmt::internal::* StringValue write_str
|
EXCLUDE_SYMBOLS = fmt::internal::* StringValue write_str
|
||||||
'''.format(include_dir, doxyxml_dir).encode('UTF-8'))
|
'''.format(include_dir, doxyxml_dir).encode('UTF-8'))
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
|
@ -165,6 +165,8 @@ FMT_END_NAMESPACE
|
|||||||
# define FMT_USE_TRAILING_RETURN 0
|
# define FMT_USE_TRAILING_RETURN 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define FMT_ENABLE_IF_T(B, T) typename std::enable_if<B, T>::type
|
||||||
|
|
||||||
#ifndef FMT_USE_GRISU
|
#ifndef FMT_USE_GRISU
|
||||||
# define FMT_USE_GRISU 0
|
# define FMT_USE_GRISU 0
|
||||||
//# define FMT_USE_GRISU std::numeric_limits<double>::is_iec559
|
//# define FMT_USE_GRISU std::numeric_limits<double>::is_iec559
|
||||||
@ -3495,9 +3497,9 @@ inline typename std::enable_if<internal::is_output_iterator<OutputIt>::value,
|
|||||||
\endrst
|
\endrst
|
||||||
*/
|
*/
|
||||||
template <typename OutputIt, typename S, typename... Args>
|
template <typename OutputIt, typename S, typename... Args>
|
||||||
inline typename std::enable_if<
|
inline FMT_ENABLE_IF_T(
|
||||||
internal::is_string<S>::value &&
|
internal::is_string<S>::value &&
|
||||||
internal::is_output_iterator<OutputIt>::value, OutputIt>::type
|
internal::is_output_iterator<OutputIt>::value, OutputIt)
|
||||||
format_to(OutputIt out, const S &format_str, const Args &... args) {
|
format_to(OutputIt out, const S &format_str, const Args &... args) {
|
||||||
internal::check_format_string<Args...>(format_str);
|
internal::check_format_string<Args...>(format_str);
|
||||||
typedef typename format_context_t<OutputIt, FMT_CHAR(S)>::type context;
|
typedef typename format_context_t<OutputIt, FMT_CHAR(S)>::type context;
|
||||||
@ -3551,10 +3553,10 @@ inline typename std::enable_if<
|
|||||||
\endrst
|
\endrst
|
||||||
*/
|
*/
|
||||||
template <typename OutputIt, typename S, typename... Args>
|
template <typename OutputIt, typename S, typename... Args>
|
||||||
inline typename std::enable_if<
|
inline FMT_ENABLE_IF_T(
|
||||||
internal::is_string<S>::value &&
|
internal::is_string<S>::value &&
|
||||||
internal::is_output_iterator<OutputIt>::value,
|
internal::is_output_iterator<OutputIt>::value,
|
||||||
format_to_n_result<OutputIt>>::type
|
format_to_n_result<OutputIt>)
|
||||||
format_to_n(OutputIt out, std::size_t n, const S &format_str,
|
format_to_n(OutputIt out, std::size_t n, const S &format_str,
|
||||||
const Args &... args) {
|
const Args &... args) {
|
||||||
internal::check_format_string<Args...>(format_str);
|
internal::check_format_string<Args...>(format_str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user