explicit_inst_deque_test.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2015-2015. Distributed under the Boost
  4. // Software License, Version 1.0. (See accompanying file
  5. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org/libs/container for documentation.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #include <boost/container/deque.hpp>
  11. #include <boost/container/allocator.hpp>
  12. #include "movable_int.hpp"
  13. #include "dummy_test_allocator.hpp"
  14. struct empty
  15. {
  16. friend bool operator == (const empty &, const empty &){ return true; }
  17. friend bool operator < (const empty &, const empty &){ return true; }
  18. };
  19. template class ::boost::container::deque<empty>;
  20. volatile ::boost::container::deque<empty> dummy;
  21. namespace boost {
  22. namespace container {
  23. //Explicit instantiation to detect compilation errors
  24. template class boost::container::deque
  25. < test::movable_and_copyable_int
  26. , test::simple_allocator<test::movable_and_copyable_int> >;
  27. template class boost::container::deque
  28. < test::movable_and_copyable_int
  29. , allocator<test::movable_and_copyable_int> >;
  30. } //namespace boost {
  31. } //namespace container {
  32. int main()
  33. {
  34. return 0;
  35. }