中间件底层,websocket

utility.hpp 941B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //******************************************************************************
  2. // RCF - Remote Call Framework
  3. //
  4. // Copyright (c) 2005 - 2020, Delta V Software. All rights reserved.
  5. // http://www.deltavsoft.com
  6. //
  7. // RCF is distributed under dual licenses - closed source or GPL.
  8. // Consult your particular license for conditions of use.
  9. //
  10. // If you have not purchased a commercial license, you are using RCF
  11. // under GPL terms.
  12. //
  13. // Version: 3.2
  14. // Contact: support <at> deltavsoft.com
  15. //
  16. //******************************************************************************
  17. #ifndef INCLUDE_SF_UTILITY_HPP
  18. #define INCLUDE_SF_UTILITY_HPP
  19. #include <utility>
  20. #include <SF/Archive.hpp>
  21. namespace SF {
  22. // std::pair
  23. template<typename T, typename U>
  24. inline void serialize_vc6(Archive &ar, std::pair<T,U> &t, const unsigned int)
  25. {
  26. ar & t.first & t.second;
  27. }
  28. } // namespace SF
  29. #endif // ! INCLUDE_SF_UTILITY_HPP