1// Copyright 2023 Peter Dimov
2// Distributed under the Boost Software License, Version 1.0.
3// https://www.boost.org/LICENSE_1_0.txt
4
5#include <boost/charconv/limits.hpp>
6
7void test_odr_use( int const* );
8
9template<typename T> void test()
10{
11 test_odr_use( &boost::charconv::limits<T>::max_chars10 );
12 test_odr_use( &boost::charconv::limits<T>::max_chars );
13}
14
15void f2()
16{
17 test<char>();
18 test<signed char>();
19 test<unsigned char>();
20 test<short>();
21 test<unsigned short>();
22 test<int>();
23 test<unsigned>();
24 test<long>();
25 test<unsigned long>();
26 test<long long>();
27 test<unsigned long long>();
28
29 test<float>();
30 test<double>();
31 test<long double>();
32
33#ifdef BOOST_CHARCONV_HAS_INT128
34
35 test<boost::int128_type>();
36 test<boost::uint128_type>();
37
38#endif
39}
40

source code of boost/libs/charconv/test/limits_link_2.cpp