interprocess_tester.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2007-2012. 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/interprocess for documentation.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef BOOST_INTERPROCESS_DETAIL_INTERPROCESS_TESTER_HPP
  11. #define BOOST_INTERPROCESS_DETAIL_INTERPROCESS_TESTER_HPP
  12. #ifndef BOOST_CONFIG_HPP
  13. # include <boost/config.hpp>
  14. #endif
  15. #
  16. #if defined(BOOST_HAS_PRAGMA_ONCE)
  17. # pragma once
  18. #endif
  19. namespace boost{
  20. namespace interprocess{
  21. namespace ipcdetail{
  22. class interprocess_tester
  23. {
  24. public:
  25. template<class T>
  26. static void dont_close_on_destruction(T &t)
  27. { t.dont_close_on_destruction(); }
  28. };
  29. } //namespace ipcdetail{
  30. } //namespace interprocess{
  31. } //namespace boost{
  32. #endif //#ifndef BOOST_INTERPROCESS_DETAIL_INTERPROCESS_TESTER_HPP