/////////////////////////////////////////////////////////////////////////////// // Copyright 2023 John Maddock. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include #include #include "test.hpp" template void test() { T val; unsigned n = T::default_precision(); T::default_precision(n); n = T::thread_default_precision(); T::thread_default_precision(n); n = val.precision(); val.precision(n); } int main() { using namespace boost::multiprecision; test(); using c = number, et_on>; test(); using l = number, et_on>; test(); using d = number, et_on>; test(); return boost::report_errors(); }