Add workaround for <gcc-4.9.1 reference binding bug

This could be gcc bug #61500.
This commit is contained in:
Kp 2014-11-04 03:21:23 +00:00
parent d5d958af96
commit 47ea6955ee
2 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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)