'What is `__vector(4) long long int`?

This is related to error: invalid static_cast from type ‘__m256i’ {aka ‘__vector(4) long long int’} to type ‘void*’.

The compiler error I got is

error: invalid static_cast from type ‘__m256i’ {aka ‘__vector(4) long long int’} to type ‘void*’

What does the __vector mean?



Solution 1:[1]

__vector is not anything defined in the C++ language. It is a name reserved to the language implementation.

It may be an implementation detail, or it may be a language extension. If it is the latter, then it should be documented by the language implementation. I recommend starting with the documentation of your compiler.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 eerorika