types_pass.cpp 1003 B

123456789101112131415161718192021222324252627282930313233343536
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // Copyright (C) 2011 Vicente J. Botet Escriba
  10. //
  11. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  12. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  13. // <boost/thread/future.hpp>
  14. // template<class R, class... ArgTypes>
  15. // class packaged_task<R(ArgTypes...)>
  16. // {
  17. // public:
  18. // typedef R result_type;
  19. #include <boost/thread/future.hpp>
  20. #include <boost/static_assert.hpp>
  21. #include <boost/detail/lightweight_test.hpp>
  22. struct A {};
  23. int main()
  24. {
  25. //BOOST_STATIC_ASSERT_MSG((boost::is_same<boost::packaged_task<A>::result_type, A>::value), "");
  26. return boost::report_errors();
  27. }