mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-20 02:42:26 +00:00
Add debug_adaptor.hpp.
Document debug_adaptor and VC++ visualizers. [SVN r82517]
This commit is contained in:
@@ -104,6 +104,9 @@ run test_arithmetic_ab_3.cpp ;
|
||||
run test_arithmetic_logged_1.cpp ;
|
||||
run test_arithmetic_logged_2.cpp ;
|
||||
|
||||
run test_arithmetic_dbg_adptr1.cpp ;
|
||||
run test_arithmetic_dbg_adptr2.cpp ;
|
||||
|
||||
run test_arithmetic_mpfi_50.cpp mpfi mpfr gmp : : : [ check-target-builds ../config//has_mpfi : : <build>no ] ;
|
||||
|
||||
run test_numeric_limits.cpp
|
||||
|
||||
19
test/test_arithmetic_dbg_adptr1.cpp
Normal file
19
test/test_arithmetic_dbg_adptr1.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Copyright 2012 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_
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# define _SCL_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
#include <boost/multiprecision/debug_adaptor.hpp>
|
||||
#include <boost/multiprecision/cpp_dec_float.hpp>
|
||||
#include "test_arithmetic.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
test<boost::multiprecision::number<boost::multiprecision::debug_adaptor<boost::multiprecision::cpp_dec_float<50> > > >();
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
19
test/test_arithmetic_dbg_adptr2.cpp
Normal file
19
test/test_arithmetic_dbg_adptr2.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
///////////////////////////////////////////////////////////////
|
||||
// Copyright 2012 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_
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# define _SCL_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
#include <boost/multiprecision/debug_adaptor.hpp>
|
||||
#include <boost/multiprecision/cpp_int.hpp>
|
||||
#include "test_arithmetic.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
test<boost::multiprecision::number<boost::multiprecision::debug_adaptor<boost::multiprecision::cpp_int_backend<> > > >();
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user