mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
vcmi: use std::optional
This commit is contained in:
@@ -339,8 +339,8 @@ public:
|
||||
VariantVisitorSaver<BinarySerializer> visitor(*this);
|
||||
std::visit(visitor, data);
|
||||
}
|
||||
template <typename T>
|
||||
void save(const boost::optional<T> &data)
|
||||
template<typename T>
|
||||
void save(const std::optional<T> & data)
|
||||
{
|
||||
if(data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user