-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as discussed on the ML, introducing is_valid_vector_argument
I (kfj) proposed: . Consider this change to .../Vc/avx/types.h and .../vc/sse/types.h, towards the end, to have (given for .../Vc/avx/types.h): namepace Traits { // instead of the blanket statement: // template<typename T> struct // is_simd_vector_internal<Vector<T, VectorAbi::Avx>> // : public std::true_type {}; // partial specialization only for vectorizable types, // which is a bit like an 'enumeration' template<> struct is_simd_vector_internal<Vector<double, VectorAbi::Avx>> : public std::true_type {}; to which mkretz answered: Ah yes. This can be generalized further to: template <class T> struct is_valid_vector_argument : public std::false_type {}; ... And then: template <class T> struct is_simd_vector_internal<Vector<T, VectorAbi::Avx>> : public is_valid_vector_argument<T> {}; this commit applies the change to all implementations.
- Loading branch information
Showing
5 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters