serialize_xml_names.hpp 876 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // Boost.Pointer Container
  3. //
  4. // Copyright Thorsten Ottosen 2003-2007. Use, modification and
  5. // distribution is subject to the Boost Software License, Version
  6. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // For more information, see http://www.boost.org/libs/ptr_container/
  10. //
  11. #ifndef BOOST_PTR_CONTAINER_DETAIL_SERIALIZE_XML_NAMES
  12. #define BOOST_PTR_CONTAINER_DETAIL_SERIALIZE_XML_NAMES
  13. namespace boost
  14. {
  15. namespace ptr_container_detail
  16. {
  17. inline const char* count() { return "count"; }
  18. inline const char* item() { return "item"; }
  19. inline const char* first() { return "first"; }
  20. inline const char* second() { return "second"; }
  21. template<class T>
  22. inline T const& serialize_as_const(T const& r)
  23. {
  24. return r;
  25. }
  26. }
  27. }
  28. #endif