default simd ctr

This commit is contained in:
Joachim Schöberl 2016-07-07 19:54:47 +02:00
parent 59bc017c40
commit 0a9adc91e9

View File

@ -169,12 +169,18 @@ namespace netgen
SIMD (const SIMD &) = default; SIMD (const SIMD &) = default;
SIMD & operator= (const SIMD &) = default; SIMD & operator= (const SIMD &) = default;
SIMD (double val)
: data(val) { ; }
/*
template <typename T> template <typename T>
SIMD (const T & val) SIMD (const T & val)
{ {
// SIMD_function(val, std::is_convertible<T, std::function<double(int)>>()); // SIMD_function(val, std::is_convertible<T, std::function<double(int)>>());
SIMD_function(val, has_call_operator<T>::value); SIMD_function(val, has_call_operator<T>::value);
} }
*/
template <typename T> template <typename T>
SIMD & operator= (const T & val) SIMD & operator= (const T & val)