diff --git a/src/format.cc b/src/format.cc new file mode 100644 index 00000000..1e164f9d --- /dev/null +++ b/src/format.cc @@ -0,0 +1,46 @@ +// Formatting library for C++ +// +// Copyright (c) 2012 - 2016, Victor Zverovich +// All rights reserved. +// +// For the license information refer to format.h. + +#include "fmt/format-inl.h" + +namespace fmt { + +template struct internal::basic_data; + +// Explicit instantiations for char. + +template char internal::thousands_sep(locale_provider *lp); + +template void basic_fixed_buffer::grow(std::size_t); + +template void internal::arg_map::init( + const basic_format_args &args); + +template FMT_API int internal::char_traits::format_float( + char *buffer, std::size_t size, const char *format, + unsigned width, int precision, double value); + +template FMT_API int internal::char_traits::format_float( + char *buffer, std::size_t size, const char *format, + unsigned width, int precision, long double value); + +// Explicit instantiations for wchar_t. + +template wchar_t internal::thousands_sep(locale_provider *lp); + +template void basic_fixed_buffer::grow(std::size_t); + +template void internal::arg_map::init(const wformat_args &args); + +template FMT_API int internal::char_traits::format_float( + wchar_t *buffer, std::size_t size, const wchar_t *format, + unsigned width, int precision, double value); + +template FMT_API int internal::char_traits::format_float( + wchar_t *buffer, std::size_t size, const wchar_t *format, + unsigned width, int precision, long double value); +} // namespace fmt