mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-22 08:42:15 +02:00
[Deque] Make the from-sequence constructor SFINAE friendly
This commit is contained in:
17
test/sequence/deque_is_constructible.cpp
Normal file
17
test/sequence/deque_is_constructible.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2015 Louis Dionne
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
==============================================================================*/
|
||||
|
||||
#include <type_traits>
|
||||
#include <boost/fusion/include/deque.hpp>
|
||||
|
||||
|
||||
struct Dummy { };
|
||||
|
||||
// Make sure deque's constructor is SFINAE-friendly.
|
||||
static_assert(!std::is_constructible<boost::fusion::deque<int>, Dummy const&>::value, "");
|
||||
|
||||
int main() { }
|
Reference in New Issue
Block a user