aligned_allocator_incomplete_test.cpp 465 B

123456789101112131415161718192021222324
  1. /*
  2. Copyright 2018 Glen Joseph Fernandes
  3. (glenjofe@gmail.com)
  4. Distributed under the Boost Software License, Version 1.0.
  5. (http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #include <boost/align/aligned_allocator.hpp>
  8. struct S;
  9. struct V { };
  10. void value_test()
  11. {
  12. boost::alignment::aligned_allocator<S> a;
  13. (void)a;
  14. }
  15. void rebind_test()
  16. {
  17. boost::alignment::aligned_allocator<V> a;
  18. boost::alignment::aligned_allocator<V>::rebind<S>::other r(a);
  19. (void)r;
  20. }