use std::optional instead of boost::optional

This commit is contained in:
Bret Curtis 2020-10-25 00:33:41 +02:00
parent 37ac5323f1
commit 62b0781f7d
18 changed files with 50 additions and 50 deletions

View file

@ -25,7 +25,7 @@ namespace DetourNavigator
return true;
}
boost::optional<RemovedRecastMeshObject> CachedRecastMeshManager::removeObject(const ObjectId id)
std::optional<RemovedRecastMeshObject> CachedRecastMeshManager::removeObject(const ObjectId id)
{
const auto object = mImpl.removeObject(id);
if (object)
@ -42,7 +42,7 @@ namespace DetourNavigator
return true;
}
boost::optional<RecastMeshManager::Water> CachedRecastMeshManager::removeWater(const osg::Vec2i& cellPosition)
std::optional<RecastMeshManager::Water> CachedRecastMeshManager::removeWater(const osg::Vec2i& cellPosition)
{
const auto water = mImpl.removeWater(cellPosition);
if (water)