mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Also define make_nvp in boost::serialization
This commit is contained in:
@ -38,10 +38,6 @@ 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
|
||||||
@ -49,6 +45,11 @@ make_nvp(const char* n, T& v) BOOST_NOEXCEPT
|
|||||||
return nvp<T>(n, v);
|
return nvp<T>(n, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} /* serialization */
|
||||||
|
|
||||||
|
using serialization::nvp;
|
||||||
|
using serialization::make_nvp;
|
||||||
|
|
||||||
} /* boost */
|
} /* boost */
|
||||||
|
|
||||||
#define BOOST_NVP(v) boost::make_nvp(BOOST_STRINGIZE(v), v)
|
#define BOOST_NVP(v) boost::make_nvp(BOOST_STRINGIZE(v), v)
|
||||||
|
Reference in New Issue
Block a user