[Boost-bugs] [Boost C++ Libraries] #6934: quantile() on an inverse_gaussian_distribution<RealType, Policy> object does not compile

Subject: [Boost-bugs] [Boost C++ Libraries] #6934: quantile() on an inverse_gaussian_distribution<RealType, Policy> object does not compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-23 11:32:30


#6934: quantile() on an inverse_gaussian_distribution<RealType, Policy> object
does not compile
-------------------------------------------------------------+--------------
 Reporter: Florian Schoppmann <Florian.Schoppmann@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
-------------------------------------------------------------+--------------
 `quantile()` creates an object of type
 `inverse_gaussian_quantile_functor<RealType>`, the constructor of which
 expects an argument of type `inverse_gaussian_distribution<RealType,
 policies::policy<> >`. Therefore, `quantile()` cannot be used with a
 custom policy, because `inverse_gaussian_distribution<RealType, Policy>`
 cannot usually be cast to `inverse_gaussian_distribution<RealType,
 policies::policy<> >`.

 Example:
 {{{
 #include <boost/math/distributions/inverse_gaussian.hpp>

 using namespace boost::math;
 using namespace boost::math::policies;

 typedef policy<
     domain_error<errno_on_error>
> my_policy;

 int main() {
     quantile(inverse_gaussian_distribution<double, my_policy>(), .5);
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6934>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC