Fix gcc 4.6 build of vms_vector with explicit temporary

gcc 4.7 and later support brace initializing the base class
gcc 4.6 requires an explicit temporary to achieve the same result
This commit is contained in:
Kp 2014-10-16 01:46:21 +00:00
parent 6934dc863c
commit d462cd11df

View file

@ -308,7 +308,10 @@ struct vertex : vms_vector
{
vertex() = default;
vertex(const fix &a, const fix &b, const fix &c) :
vms_vector{a, b, c}
/* gcc 4.7 and later support brace initializing the base class
* gcc 4.6 requires the explicit temporary
*/
vms_vector(vms_vector{a, b, c})
{
}
explicit vertex(const vms_vector &v) :