Home > Back-end >  A piece of code, Microsoft and Intel compiler can, arm - GCC error
A piece of code, Microsoft and Intel compiler can, arm - GCC error

Time:11-28

 
The class vec_32bitstuff: public vec_data
{
Public:
//Constructors and converters up from the base type.
The inline vec_32bitstuff () {}
The inline vec_32bitstuff vec_data (z) : vec_data (z) {}
.
.
.
}

The class vec_float: public vec_32bitstuff
{
Public:
The inline vec_float () {}
# ifdef INTEL_SIMD
The inline vec_float __m128 (z) : vec_32bitstuff (z) {}
# endif
The inline vec_float vec_32bitstuff (z) : vec_32bitstuff (z) {}
The inline vec_float vec_data (z) : vec_32bitstuff (z) {}
.
.
}

The above code, vs and interl are good, but the arm - GCC when using vec_float
Error: the call of overloaded 'vec_32bitstuff (const vec_int)' is ambiguous

Because use vec_float place too much, just want to change the base class, how do I change?

  • Related