1// Formatting library for C++
2//
3// Copyright (c) 2012 - 2016, Victor Zverovich
4// All rights reserved.
5//
6// For the license information refer to format.h.
7
8#include "fmt/format-inl.h"
9
10FMT_BEGIN_NAMESPACE
11namespace detail {
12
13template FMT_API auto dragonbox::to_decimal(float x) noexcept
14 -> dragonbox::decimal_fp<float>;
15template FMT_API auto dragonbox::to_decimal(double x) noexcept
16 -> dragonbox::decimal_fp<double>;
17
18#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
19template FMT_API locale_ref::locale_ref(const std::locale& loc);
20template FMT_API auto locale_ref::get<std::locale>() const -> std::locale;
21#endif
22
23// Explicit instantiations for char.
24
25template FMT_API auto thousands_sep_impl(locale_ref)
26 -> thousands_sep_result<char>;
27template FMT_API auto decimal_point_impl(locale_ref) -> char;
28
29template FMT_API void buffer<char>::append(const char*, const char*);
30
31// DEPRECATED!
32// There is no correspondent extern template in format.h because of
33// incompatibility between clang and gcc (#2377).
34template FMT_API void vformat_to(buffer<char>&, string_view,
35 basic_format_args<FMT_BUFFER_CONTEXT(char)>,
36 locale_ref);
37
38// Explicit instantiations for wchar_t.
39
40template FMT_API auto thousands_sep_impl(locale_ref)
41 -> thousands_sep_result<wchar_t>;
42template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
43
44template FMT_API void buffer<wchar_t>::append(const wchar_t*, const wchar_t*);
45
46} // namespace detail
47FMT_END_NAMESPACE
48