null ptr support to unique_ptr

This commit is contained in:
Randolph Voorhies
2013-06-28 15:54:45 -07:00
parent f1b42507d7
commit 3c9554f8a2
4 changed files with 79 additions and 24 deletions

View File

@@ -62,6 +62,8 @@ int main()
cereal::BinaryOutputArchive archive(stream);
std::shared_ptr<Base> ptr = std::make_shared<MyType>();
archive(ptr);
std::unique_ptr<int> xxx(nullptr);
archive(xxx);
}