Skip to content

Commit

Permalink
Fix build with boost 1.85.0 (#3386)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored May 13, 2024
1 parent 291ab64 commit e4b4d0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gazebo/common/Console.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void FileLogger::Init(const std::string &_prefix, const std::string &_filename)
if (boost::filesystem::is_directory(logPath))
this->logDirectory = logPath.string();
else
this->logDirectory = logPath.branch_path().string();
this->logDirectory = logPath.parent_path().string();
}

/////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions gazebo/util/LogPlay.cc
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ common::Time LogPlay::LogEndTime() const
/////////////////////////////////////////////////
std::string LogPlay::Filename() const
{
return boost::filesystem::basename(this->dataPtr->filename) +
boost::filesystem::extension(this->dataPtr->filename);
boost::filesystem::path path(this->dataPtr->filename);
return path.stem().string() + path.extension().string();
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit e4b4d0f

Please sign in to comment.