intermod_holder_dll.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Boost.Flyweight test of intermodule_holder.
  2. *
  3. * Copyright 2006-2018 Joaquin M Lopez Munoz.
  4. * Distributed under the Boost Software License, Version 1.0.
  5. * (See accompanying file LICENSE_1_0.txt or copy at
  6. * http://www.boost.org/LICENSE_1_0.txt)
  7. *
  8. * See http://www.boost.org/libs/flyweight for library home page.
  9. */
  10. #ifndef BOOST_FLYWEIGHT_TEST_INTERMOD_HOLDER_DLL_HPP
  11. #define BOOST_FLYWEIGHT_TEST_INTERMOD_HOLDER_DLL_HPP
  12. #if defined(_MSC_VER)
  13. #pragma once
  14. #endif
  15. #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
  16. #include <boost/flyweight/flyweight.hpp>
  17. #include <boost/flyweight/hashed_factory.hpp>
  18. #include <boost/flyweight/intermodule_holder.hpp>
  19. #include <boost/flyweight/refcounted.hpp>
  20. #include <boost/flyweight/simple_locking.hpp>
  21. #include <string>
  22. #ifdef BOOST_FLYWEIGHT_TEST_INTERMOD_HOLDER_DLL_SOURCE
  23. #define BOOST_FLYWEIGHT_DLL_DECL BOOST_SYMBOL_EXPORT
  24. #else
  25. #define BOOST_FLYWEIGHT_DLL_DECL BOOST_SYMBOL_IMPORT
  26. #endif
  27. typedef boost::flyweights::flyweight<
  28. std::string,
  29. boost::flyweights::intermodule_holder> intermodule_flyweight_string;
  30. BOOST_FLYWEIGHT_DLL_DECL intermodule_flyweight_string
  31. create_intermodule_flyweight_string(const std::string&);
  32. #undef BOOST_FLYWEIGHT_DLL_DECL
  33. #endif