Also define make_nvp in boost::serialization

This commit is contained in:
Glen Fernandes
2019-10-01 08:03:08 -04:00
parent ac427ad64a
commit e94af0d41a

View File

@ -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)