From 70612cd4723f12e6954a0658b9385971753a489a Mon Sep 17 00:00:00 2001 From: Brian Kuhl Date: Mon, 25 Jun 2018 20:06:48 -0400 Subject: [PATCH] Keep examples clean, disable build for VxWorks --- example/Jamfile.v2 | 4 ++-- example/policy_eg_10.cpp | 3 ++- example/policy_ref_snip5.cpp | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/example/Jamfile.v2 b/example/Jamfile.v2 index 9cf817ced..dd3a0e9c1 100644 --- a/example/Jamfile.v2 +++ b/example/Jamfile.v2 @@ -91,7 +91,7 @@ test-suite examples : [ run normal_misc_examples.cpp : : : off:no ] [ run owens_t_example.cpp ] [ run policy_eg_1.cpp ] - [ run policy_eg_10.cpp ] + [ run policy_eg_10.cpp : : : vxworks:no ] # VxWorks' complex.h has conflicting declaration of real [ run policy_eg_2.cpp ] [ run policy_eg_3.cpp ] [ run policy_eg_4.cpp ] @@ -108,7 +108,7 @@ test-suite examples : [ run policy_ref_snip2.cpp ] [ run policy_ref_snip3.cpp : : : off:no ] [ run policy_ref_snip4.cpp ] - [ run policy_ref_snip5.cpp ] + [ run policy_ref_snip5.cpp : : : vxworks:no ] [ run policy_ref_snip6.cpp ] [ run policy_ref_snip7.cpp ] [ run policy_ref_snip8.cpp ] diff --git a/example/policy_eg_10.cpp b/example/policy_eg_10.cpp index 081faf76d..87f84c090 100644 --- a/example/policy_eg_10.cpp +++ b/example/policy_eg_10.cpp @@ -50,6 +50,7 @@ using boost::math::policies::integer_round_down; using boost::math::policies::integer_round_up; using boost::math::policies::integer_round_nearest; using boost::math::policies::integer_round_inwards; +using boost::math::policies::real; using boost::math::binomial_distribution; // Not std::binomial_distribution. @@ -80,7 +81,7 @@ typedef binomial_distribution< typedef binomial_distribution< double, - policy > > + policy > > binom_real_quantile; /*` diff --git a/example/policy_ref_snip5.cpp b/example/policy_ref_snip5.cpp index 34f53b19f..06f270af4 100644 --- a/example/policy_ref_snip5.cpp +++ b/example/policy_ref_snip5.cpp @@ -16,7 +16,7 @@ using namespace boost::math::policies; typedef negative_binomial_distribution< double, - policy > + policy > > dist_type; // Lower 5% quantile: