mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 12:57:26 +02:00
Define nvp inside boost::serialization and bring it into boost
This commit is contained in:
@ -12,6 +12,7 @@ Distributed under the Boost Software License, Version 1.0.
|
|||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
namespace serialization {
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
class nvp {
|
class nvp {
|
||||||
@ -37,6 +38,10 @@ private:
|
|||||||
T* v_;
|
T* v_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} /* serialization */
|
||||||
|
|
||||||
|
using serialization::nvp;
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
inline const nvp<T>
|
inline const nvp<T>
|
||||||
make_nvp(const char* n, T& v) BOOST_NOEXCEPT
|
make_nvp(const char* n, T& v) BOOST_NOEXCEPT
|
||||||
|
Reference in New Issue
Block a user