Skip to content

Commit 56137e6

Browse files
committed
Removed outdated stuff
1 parent dad659f commit 56137e6

1 file changed

Lines changed: 5 additions & 28 deletions

File tree

include/xsimd/types/xsimd_utils.hpp

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ namespace xsimd
190190
inline To bit_cast(From val) noexcept
191191
{
192192
static_assert(sizeof(From) == sizeof(To), "casting between compatible layout");
193-
// FIXME: Some old version of GCC don't support that trait
194-
// static_assert(std::is_trivially_copyable<From>::value, "input type is trivially copyable");
195-
// static_assert(std::is_trivially_copyable<To>::value, "output type is trivially copyable");
193+
static_assert(std::is_trivially_copyable<From>::value, "input type is trivially copyable");
194+
static_assert(std::is_trivially_copyable<To>::value, "output type is trivially copyable");
196195
To res;
197196
std::memcpy(&res, &val, sizeof(val));
198197
return res;
@@ -255,19 +254,13 @@ namespace xsimd
255254
} // namespace detail
256255
} // namespace kernel
257256

258-
/*****************************************
259-
* Backport of index_sequence from c++14 *
260-
*****************************************/
257+
/*******************************************
258+
* int_sequence and make_sequence_as_batch *
259+
*******************************************/
261260

262261
// TODO: Remove this once we drop C++11 support
263262
namespace detail
264263
{
265-
template <typename T>
266-
struct identity
267-
{
268-
using type = T;
269-
};
270-
271264
template <int... Is>
272265
using int_sequence = std::integer_sequence<int, Is...>;
273266

@@ -291,22 +284,6 @@ namespace xsimd
291284
}
292285
}
293286

294-
/**************************************************
295-
* Equivalent of void_t but with size_t parameter *
296-
**************************************************/
297-
298-
namespace detail
299-
{
300-
template <std::size_t>
301-
struct check_size
302-
{
303-
using type = void;
304-
};
305-
306-
template <std::size_t S>
307-
using check_size_t = typename check_size<S>::type;
308-
}
309-
310287
/*****************************************
311288
* Supplementary std::array constructors *
312289
*****************************************/

0 commit comments

Comments
 (0)