explicit_inst_stable_vector_test.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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/stable_vector.hpp>
  11. struct empty
  12. {
  13. friend bool operator == (const empty &, const empty &){ return true; }
  14. friend bool operator < (const empty &, const empty &){ return true; }
  15. };
  16. template class ::boost::container::stable_vector<empty>;
  17. volatile ::boost::container::stable_vector<empty> dummy;
  18. #include <boost/container/node_allocator.hpp>
  19. #include "movable_int.hpp"
  20. #include "dummy_test_allocator.hpp"
  21. namespace boost {
  22. namespace container {
  23. //Explicit instantiation to detect compilation errors
  24. template class stable_vector<test::movable_and_copyable_int,
  25. test::simple_allocator<test::movable_and_copyable_int> >;
  26. template class stable_vector
  27. < test::movable_and_copyable_int
  28. , node_allocator<test::movable_and_copyable_int> >;
  29. template class stable_vector_iterator<int*, false>;
  30. template class stable_vector_iterator<int*, true >;
  31. }}
  32. int main()
  33. {
  34. return 0;
  35. }