Skip to content

Commit

Permalink
MSVC fails in allocator_traits with deque
Browse files Browse the repository at this point in the history
allocator_traits<std::allocator<Vc::SSE::Vector<T>>> fails to compile in
the code generated from the test code using std::deque. Since I have no
idea for a workaround, this commit simply disables the std::deque test
on MSVC.

Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Apr 15, 2016
1 parent 82da8b5 commit 1796a05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/stlcontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ TEST_TYPES(V, listInitialization, (ALL_VECTORS))
listInitializationImpl<V, std::vector<V>>(Vc::make_index_sequence<3>());
listInitializationImpl<V, std::array<V, 9>>(Vc::make_index_sequence<9>());
listInitializationImpl<V, std::array<V, 3>>(Vc::make_index_sequence<3>());
#ifndef Vc_MSVC
listInitializationImpl<V, std::deque<V>>(Vc::make_index_sequence<9>());
listInitializationImpl<V, std::deque<V>>(Vc::make_index_sequence<3>());
#endif

// The following two crash (at least with AVX). Probably unaligned memory access.
//listInitialization<V, std::forward_list<V>>();
Expand Down

0 comments on commit 1796a05

Please sign in to comment.