Opened 11 years ago

#6075 new Feature Requests

Can we add policy based disabling of error checking inside math distributions?

Reported by: thijs@… Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.47.0 Severity: Optimization
Keywords: Cc:

Description

..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?

Change History (0)

Note: See TracTickets for help on using tickets.