[Boost-bugs] [Boost C++ Libraries] #6075: Can we add policy based disabling of error checking inside math distributions?

Subject: [Boost-bugs] [Boost C++ Libraries] #6075: Can we add policy based disabling of error checking inside math distributions?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-31 13:41:37


#6075: Can we add policy based disabling of error checking inside math
distributions?
------------------------------+---------------------------------------------
 Reporter: thijs@… | Owner: johnmaddock
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.47.0 | Severity: Optimization
 Keywords: |
------------------------------+---------------------------------------------
 ..from the boost dev mailing list..

 I wrote:
 Would it be possible to move the detail::check_scale(d) etc into the
 Policy class? That way I could provide a different policy that get's
 eliminated compile time via an implementation like
 "inline policy::check_scale(d){return;}"

 John wrote:
 I don't think we could move all the checks inside the policy class as each
 distribution is more or less different, but we could pass a compile time
 param to the checking functions to have the same effect. In fact can you
 file a bug report so I don't forget?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6075>
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:07 UTC