|
26 | 26 | #include <thrust/detail/vector_base.h>
|
27 | 27 | #include <thrust/device_allocator.h>
|
28 | 28 |
|
29 |
| -#if THRUST_CPP_DIALECT >= 2011 |
30 | 29 | #include <initializer_list>
|
31 |
| -#endif |
32 | 30 | #include <vector>
|
33 | 31 | #include <utility>
|
34 | 32 |
|
@@ -200,26 +198,24 @@ template<typename T, typename Alloc = thrust::device_allocator<T> >
|
200 | 198 | device_vector &operator=(const detail::vector_base<OtherT,OtherAlloc> &v)
|
201 | 199 | { Parent::operator=(v); return *this; }
|
202 | 200 |
|
203 |
| -#if THRUST_CPP_DIALECT >= 2011 |
204 | 201 | /*! This constructor builds a \p device_vector from an intializer_list.
|
205 | 202 | * \param il The intializer_list.
|
206 | 203 | */
|
207 | 204 | device_vector(std::initializer_list<T> il)
|
208 |
| - :Parent(il.begin(), il.end()) {} |
| 205 | + :Parent(il) {} |
209 | 206 |
|
210 | 207 | /*! This constructor builds a \p device_vector from an intializer_list.
|
211 | 208 | * \param il The intializer_list.
|
212 | 209 | * \param alloc The allocator to use by this device_vector.
|
213 | 210 | */
|
214 | 211 | device_vector(std::initializer_list<T> il, const Alloc &alloc)
|
215 |
| - :Parent(il.begin(), il.end(), alloc) {} |
| 212 | + :Parent(il, alloc) {} |
216 | 213 |
|
217 | 214 | /*! Assign an \p intializer_list with a matching element type
|
218 | 215 | * \param il The intializer_list.
|
219 | 216 | */
|
220 | 217 | device_vector &operator=(std::initializer_list<T> il)
|
221 | 218 | { Parent::operator=(il); return *this; }
|
222 |
| -#endif |
223 | 219 |
|
224 | 220 | /*! This constructor builds a \p device_vector from a range.
|
225 | 221 | * \param first The beginning of the range.
|
|
0 commit comments