Test mpz_class when available.

And fix errors compiling with that type.
This commit is contained in:
jzmaddock
2017-05-07 13:15:15 +01:00
parent 84ded579f3
commit 7ccb820893
4 changed files with 29 additions and 7 deletions

View File

@@ -6,6 +6,9 @@ import testing ;
project : requirements <warnings>all <toolset>gcc:<cxxflags>-Wextra ;
obj has_gmpxx : has_gmpxx.cpp ;
explicit has_gmpxx ;
test-suite integer
:
[ run integer_traits_test.cpp ]
@@ -28,5 +31,5 @@ test-suite integer
[ compile-fail fail_uint_fast.cpp ]
[ compile-fail fail_uint_least.cpp ]
[ compile-fail fail_uint_65.cpp ]
[ run common_factor_test.cpp ]
[ run common_factor_test.cpp : : : [ check-target-builds "Checking for gmpxx.h" : <define>BOOST_INTEGER_HAS_GMPXX_H=1 ] ]
;