mirror of
https://github.com/USCiLab/cereal.git
synced 2025-10-18 01:45:52 +02:00
null ptr support to unique_ptr
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user