mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 17:15:34 +00:00
Use std::any instead of boost::any
This commit is contained in:
parent
8047a2138e
commit
9abfaef7a1
2 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue