NVPs more or less working

This commit is contained in:
Shane Grant
2013-06-12 14:52:18 -07:00
parent 71cd5c3cb5
commit 679caf17ba
2 changed files with 45 additions and 3 deletions

View File

@@ -82,5 +82,16 @@ int main()
archive & t3;
archive & t4;
int x = 5;
auto nvp = cereal::make_nvp("hello!", x);
//auto nvp2 = CEREAL_NVP(x);
std::cout << std::is_base_of<cereal::detail::NameValuePairCore, decltype(nvp)>::value << std::endl;
std::cout << cereal::traits::has_non_member_serialize<decltype(nvp), cereal::BinaryOutputArchive>() << std::endl;
std::cout << cereal::traits::is_serializable<decltype(nvp), cereal::BinaryOutputArchive>() << std::endl;
archive & nvp;
archive & cereal::make_nvp("another", x);
return 0;
}