Use std::any instead of boost::any

fix/shrink_builds
elsid 3 years ago
parent 8047a2138e
commit 9abfaef7a1
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -6,7 +6,7 @@ namespace
{
template<typename T>
void create(const MWWorld::Store<T>& list, const std::string& name, boost::any& refValue, MWWorld::Ptr& ptrValue)
void create(const MWWorld::Store<T>& list, const std::string& name, std::any& refValue, MWWorld::Ptr& ptrValue)
{
const T* base = list.find(name);
@ -26,7 +26,7 @@ namespace
MWWorld::LiveCellRef<T> ref(cellRef, base);
refValue = ref;
ptrValue = MWWorld::Ptr(&boost::any_cast<MWWorld::LiveCellRef<T>&>(refValue), nullptr);
ptrValue = MWWorld::Ptr(&std::any_cast<MWWorld::LiveCellRef<T>&>(refValue), nullptr);
}
}

@ -1,7 +1,7 @@
#ifndef GAME_MWWORLD_MANUALREF_H
#define GAME_MWWORLD_MANUALREF_H
#include <boost/any.hpp>
#include <any>
#include "ptr.hpp"
@ -10,7 +10,7 @@ namespace MWWorld
/// \brief Manually constructed live cell ref
class ManualRef
{
boost::any mRef;
std::any mRef;
Ptr mPtr;
ManualRef (const ManualRef&);

Loading…
Cancel
Save