mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-07 13:20:05 +00:00
Fix clang build
This commit is contained in:
parent
91a7ee6c20
commit
7c0d5756ff
@ -611,6 +611,11 @@ class fmt::internal::ArgFormatter :
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <typename Char>
|
||||||
|
void fmt::internal::FixedBuffer<Char>::grow(std::size_t) {
|
||||||
|
FMT_THROW(std::runtime_error("buffer overflow"));
|
||||||
|
}
|
||||||
|
|
||||||
template <typename Char>
|
template <typename Char>
|
||||||
template <typename StrChar>
|
template <typename StrChar>
|
||||||
void fmt::BasicWriter<Char>::write_str(
|
void fmt::BasicWriter<Char>::write_str(
|
||||||
@ -1116,6 +1121,8 @@ FMT_FUNC int fmt::fprintf(std::FILE *f, StringRef format, ArgList args) {
|
|||||||
|
|
||||||
// Explicit instantiations for char.
|
// Explicit instantiations for char.
|
||||||
|
|
||||||
|
template void fmt::internal::FixedBuffer<char>::grow(std::size_t);
|
||||||
|
|
||||||
template const char *fmt::BasicFormatter<char>::format(
|
template const char *fmt::BasicFormatter<char>::format(
|
||||||
const char *&format_str, const fmt::internal::Arg &arg);
|
const char *&format_str, const fmt::internal::Arg &arg);
|
||||||
|
|
||||||
@ -1135,6 +1142,8 @@ template int fmt::internal::CharTraits<char>::format_float(
|
|||||||
|
|
||||||
// Explicit instantiations for wchar_t.
|
// Explicit instantiations for wchar_t.
|
||||||
|
|
||||||
|
template void fmt::internal::FixedBuffer<wchar_t>::grow(std::size_t);
|
||||||
|
|
||||||
template const wchar_t *fmt::BasicFormatter<wchar_t>::format(
|
template const wchar_t *fmt::BasicFormatter<wchar_t>::format(
|
||||||
const wchar_t *&format_str, const fmt::internal::Arg &arg);
|
const wchar_t *&format_str, const fmt::internal::Arg &arg);
|
||||||
|
|
||||||
|
4
format.h
4
format.h
@ -444,9 +444,7 @@ class FixedBuffer : public fmt::internal::Buffer<Char> {
|
|||||||
: fmt::internal::Buffer<Char>(array, size) {}
|
: fmt::internal::Buffer<Char>(array, size) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void grow(std::size_t size) {
|
void grow(std::size_t size);
|
||||||
throw std::runtime_error("buffer overflow");
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
|
Loading…
Reference in New Issue
Block a user