deque_is_constructible.cpp 661 B

123456789101112131415161718192021
  1. /*=============================================================================
  2. Copyright (c) 2015 Louis Dionne
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #include <boost/config.hpp>
  7. #ifndef BOOST_NO_CXX11_HDR_TYPE_TRAITS
  8. #include <type_traits>
  9. #include <boost/fusion/include/deque.hpp>
  10. struct Dummy { };
  11. // Make sure deque's constructor is SFINAE-friendly.
  12. static_assert(!std::is_constructible<boost::fusion::deque<int>, Dummy const&>::value, "");
  13. #endif