dll_a.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  2. // dll_a.cpp
  3. // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
  4. // Use, modification and distribution is subject to the Boost Software
  5. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. // Build a dll which contains the serialization for a class A
  8. // used in testing distribution of serialization code in DLLS
  9. #define A_EXPORT
  10. #include "A.hpp"
  11. #include "A.ipp"
  12. #include "A.cpp"
  13. // instantiate code for text archives
  14. #include <boost/archive/text_oarchive.hpp>
  15. #include <boost/archive/text_iarchive.hpp>
  16. template
  17. A_DLL_DECL void A::serialize(
  18. boost::archive::text_oarchive &ar,
  19. const unsigned int /* file_version */
  20. );
  21. template
  22. A_DLL_DECL void A::serialize(
  23. boost::archive::text_iarchive &ar,
  24. const unsigned int /* file_version */
  25. );
  26. // instantiate code for polymorphic archives
  27. #include <boost/archive/polymorphic_oarchive.hpp>
  28. #include <boost/archive/polymorphic_iarchive.hpp>
  29. template
  30. A_DLL_DECL void A::serialize(
  31. boost::archive::polymorphic_oarchive &,
  32. const unsigned int /* file_version */
  33. );
  34. template
  35. A_DLL_DECL void A::serialize(
  36. boost::archive::polymorphic_iarchive &,
  37. const unsigned int /* file_version */
  38. );