boost::numeric::quadrature::is_arithmetic_scalar — trait that can be specialised for other scalar types
template<typename T> struct is_arithmetic_scalar { };
overide this to use a type such as NTL::quad_float, or boost::numeric::interval