Skip to content

Commit

Permalink
MSVC: work around C++ frontend bug
Browse files Browse the repository at this point in the history
The compiler gets totally confused by the empty pack and simply disables
the broadcast ctor as "retaliation". WTF.

Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Sep 25, 2018
1 parent 41c21fb commit c9bba80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Vc/common/generalinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

///////////////////////////////////////////////////////////////////////////
// generator ctor
template <class G, class...,
template <class G, int = 0,
class = typename std::enable_if<std::is_convertible<
decltype(std::declval<G>()(size_t())), value_type>::value>::type>
explicit Vector(G &&g) : Vector(generate(std::forward<G>(g)))
{
}


// vim: foldmethod=marker

0 comments on commit c9bba80

Please sign in to comment.