You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.5 KiB

  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. #include "fmt/format-inl.h"
  8. FMT_BEGIN_NAMESPACE
  9. namespace detail {
  10. template FMT_API auto dragonbox::to_decimal(float x) noexcept
  11. -> dragonbox::decimal_fp<float>;
  12. template FMT_API auto dragonbox::to_decimal(double x) noexcept
  13. -> dragonbox::decimal_fp<double>;
  14. #ifndef FMT_STATIC_THOUSANDS_SEPARATOR
  15. template FMT_API locale_ref::locale_ref(const std::locale& loc);
  16. template FMT_API auto locale_ref::get<std::locale>() const -> std::locale;
  17. #endif
  18. // Explicit instantiations for char.
  19. template FMT_API auto thousands_sep_impl(locale_ref)
  20. -> thousands_sep_result<char>;
  21. template FMT_API auto decimal_point_impl(locale_ref) -> char;
  22. template FMT_API void buffer<char>::append(const char*, const char*);
  23. // DEPRECATED!
  24. // There is no correspondent extern template in format.h because of
  25. // incompatibility between clang and gcc (#2377).
  26. template FMT_API void vformat_to(buffer<char>&, string_view,
  27. basic_format_args<FMT_BUFFER_CONTEXT(char)>,
  28. locale_ref);
  29. // Explicit instantiations for wchar_t.
  30. template FMT_API auto thousands_sep_impl(locale_ref)
  31. -> thousands_sep_result<wchar_t>;
  32. template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
  33. template FMT_API void buffer<wchar_t>::append(const wchar_t*, const wchar_t*);
  34. } // namespace detail
  35. FMT_END_NAMESPACE