Add workaround for <gcc-4.9.1 reference binding bug
This could be gcc bug #61500.
This commit is contained in:
parent
d5d958af96
commit
47ea6955ee
|
@ -74,8 +74,10 @@ static void assign_min(fix &a, const fix &b)
|
|||
template <fix vms_vector::*p>
|
||||
static void update_bounds(vms_vector &minv, vms_vector &maxv, const vms_vector *vp)
|
||||
{
|
||||
assign_max(maxv.*p, vp->*p);
|
||||
assign_min(minv.*p, vp->*p);
|
||||
auto &mx = maxv.*p;
|
||||
assign_max(mx, vp->*p);
|
||||
auto &mn = minv.*p;
|
||||
assign_min(mn, vp->*p);
|
||||
}
|
||||
|
||||
//takes pm, fills in min & max
|
||||
|
|
|
@ -596,8 +596,10 @@ static void assign_min(fix &a, const fix &b)
|
|||
template <fix vms_vector::*p>
|
||||
static void update_bounds(vms_vector &minv, vms_vector &maxv, const vms_vector &vp)
|
||||
{
|
||||
assign_max(maxv.*p, vp.*p);
|
||||
assign_min(minv.*p, vp.*p);
|
||||
auto &mx = maxv.*p;
|
||||
assign_max(mx, vp.*p);
|
||||
auto &mn = minv.*p;
|
||||
assign_min(mn, vp.*p);
|
||||
}
|
||||
|
||||
static void assign_minmax(vms_vector &minv, vms_vector &maxv, const vms_vector &v)
|
||||
|
|
Loading…
Reference in a new issue