Fixing code that generates a warning in C++11.
@@ -89,16 +89,19 @@ struct complex {
inline __host__ __device__ complex(const T& re, const T& im);
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900)
+ // NOTE: __host__ and __device__ annotation is ignored on a function that
+ // is explicitly-defaulted on its first declaration
+
/*! Default construct a complex number.
*/
- inline __host__ __device__ complex() = default;
+ inline /*__host__ __device__*/ complex() = default;
/*! This copy constructor copies from a \p complex with a type that is
* convertible to this \p complex's \c value_type.
*
* \param z The \p complex to copy from.
*/
- inline __host__ __device__ complex(const complex<T>& z) = default;
+ inline /*__host__ __device__*/ complex(const complex<T>& z) = default;
#else
/*! Default construct a complex number.
*/
