Skip to content

Replace Boost filesystem with C++17 std::filesystem#6405

Open
kai-waang wants to merge 4 commits intoPointCloudLibrary:masterfrom
kai-waang:remove-boost-fs
Open

Replace Boost filesystem with C++17 std::filesystem#6405
kai-waang wants to merge 4 commits intoPointCloudLibrary:masterfrom
kai-waang:remove-boost-fs

Conversation

@kai-waang
Copy link
Contributor

#6403 has dropped support for C++14, so std::filesystem is now avaliable by default in PCL. As discussed in #5881, boost::filesystem was kept because of C++14 compatibility. So this PR:

  • removing Boost::filesystem from pcl_find_boost.cmake
  • removing the option PCL_PREFER_BOOST_FILESYSTEM.
  • removing linkage with Boost::filesystem
  • changing boost::filesystem usage in outofcore to pcl_fs and now pcl_fs is equal to std::filesystem

Some codes still have boost/filesystem or boost::filesystem usage.

  • pcl/outofcore/boost.h, pcl/visualization/boost.h: includes <boost/filesystem.hpp>. But these two header files are not used in PCL.
  • pcl/outofcore/impl/octree_base_node.hpp 2021:2172, but these codes are wrapped by #if 0, and may be removed by another PR.

@kai-waang kai-waang marked this pull request as draft February 4, 2026 12:05
@kai-waang kai-waang marked this pull request as ready for review February 4, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant