mirror of
https://github.com/boostorg/charconv.git
synced 2026-01-19 16:12:14 +00:00
40 lines
809 B
C++
40 lines
809 B
C++
// Copyright 2023 Peter Dimov
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
#include <boost/charconv/limits.hpp>
|
|
|
|
void test_odr_use( int const* );
|
|
|
|
template<typename T> void test()
|
|
{
|
|
test_odr_use( &boost::charconv::limits<T>::max_chars10 );
|
|
test_odr_use( &boost::charconv::limits<T>::max_chars );
|
|
}
|
|
|
|
void f2()
|
|
{
|
|
test<char>();
|
|
test<signed char>();
|
|
test<unsigned char>();
|
|
test<short>();
|
|
test<unsigned short>();
|
|
test<int>();
|
|
test<unsigned>();
|
|
test<long>();
|
|
test<unsigned long>();
|
|
test<long long>();
|
|
test<unsigned long long>();
|
|
|
|
test<float>();
|
|
test<double>();
|
|
test<long double>();
|
|
|
|
#ifdef BOOST_CHARCONV_HAS_INT128
|
|
|
|
test<boost::int128_type>();
|
|
test<boost::uint128_type>();
|
|
|
|
#endif
|
|
}
|