/* * Copyright Nick Thompson, 2017 * 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) */ #if !defined(_MSC_VER) || (_MSC_VER >= 1900) #include #include using boost::math::concepts::std_real_concept; using boost::math::quadrature::naive_monte_carlo; void compile_and_link_test() { auto g = [&](std::vector const & x) { return 1.873; }; std::vector> bounds{{0, 1}, {0, 1}, {0, 1}}; naive_monte_carlo mc(g, bounds, 1.0); auto task = mc.integrate(); task.get(); } #else void compile_and_link_test() { } #endif