mirror of
https://github.com/boostorg/core.git
synced 2025-05-11 13:13:55 +00:00
Also define make_nvp in boost::serialization
This commit is contained in:
parent
ac427ad64a
commit
e94af0d41a
@ -38,10 +38,6 @@ private:
|
||||
T* v_;
|
||||
};
|
||||
|
||||
} /* serialization */
|
||||
|
||||
using serialization::nvp;
|
||||
|
||||
template<class T>
|
||||
inline const nvp<T>
|
||||
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);
|
||||
}
|
||||
|
||||
} /* serialization */
|
||||
|
||||
using serialization::nvp;
|
||||
using serialization::make_nvp;
|
||||
|
||||
} /* boost */
|
||||
|
||||
#define BOOST_NVP(v) boost::make_nvp(BOOST_STRINGIZE(v), v)
|
||||
|
Loading…
x
Reference in New Issue
Block a user