smart_ptr.cpp 645 B

1234567891011121314151617181920212223
  1. // Copyright Louis Dionne 2013-2017
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  4. #include <boost/hana/tuple.hpp>
  5. #include <memory>
  6. namespace hana = boost::hana;
  7. // Tuples of smart pointers; based on LLVM bug #18350
  8. int main() {
  9. {
  10. hana::tuple<std::unique_ptr<char>> up;
  11. hana::tuple<std::shared_ptr<char>> sp;
  12. hana::tuple<std::weak_ptr <char>> wp;
  13. }
  14. {
  15. hana::tuple<std::unique_ptr<char[]>> up;
  16. hana::tuple<std::shared_ptr<char[]>> sp;
  17. hana::tuple<std::weak_ptr <char[]>> wp;
  18. }
  19. }