// Copyright John Maddock 2006. // Use, modification and distribution are subject to 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) // // Basic sanity check that header // #includes all the files that it needs to. // #include // // Note this header includes no other headers, this is // important if this test is to be meaningful: // #include "test_compile_result.hpp" template > class test_distribution { public: typedef T value_type; typedef Policy policy_type; test_distribution(){} }; template T quantile(const test_distribution&, T) { return 0; } template T quantile(const boost::math::complemented2_type, T>&) { return 0; } namespace boost{ namespace math{ namespace tools{ template struct is_distribution > : public mpl::true_{}; template struct is_scaled_distribution > : public mpl::true_{}; }}} void compile_and_link_test() { check_result(boost::math::find_scale >(f, f, f, boost::math::policies::policy<>())); check_result(boost::math::find_scale >(d, d, d, boost::math::policies::policy<>())); check_result(boost::math::find_scale >(l, l, l, boost::math::policies::policy<>())); check_result(boost::math::find_scale >(f, f, f)); check_result(boost::math::find_scale >(d, d, d)); check_result(boost::math::find_scale >(l, l, l)); check_result(boost::math::find_scale >(boost::math::complement(f, f, f, boost::math::policies::policy<>()))); check_result(boost::math::find_scale >(boost::math::complement(d, d, d, boost::math::policies::policy<>()))); check_result(boost::math::find_scale >(boost::math::complement(l, l, l, boost::math::policies::policy<>()))); check_result(boost::math::find_scale >(boost::math::complement(f, f, f))); check_result(boost::math::find_scale >(boost::math::complement(d, d, d))); check_result(boost::math::find_scale >(boost::math::complement(l, l, l))); }