]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: migrate from boost::variant to std::variant 62336/head
authorKefu Chai <tchaikov@gmail.com>
Mon, 17 Mar 2025 10:06:17 +0000 (18:06 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 18 Mar 2025 02:31:49 +0000 (10:31 +0800)
commit017f3339c05efb1512a317541ce89f9d21343875
tree2c82496a0d9b34d0c42694cebbc843c6f1375c95
parent8d229a9ebab1f9c32eb248f2fba8964fc64676c1
librbd: migrate from boost::variant to std::variant

This change is part of a broader effort to reduce dependencies on
third-party libraries by leveraging C++ standard library alternatives.

Migrating from boost::variant to std::variant improves code readability
and maintainability while reducing external dependencies.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
13 files changed:
src/librbd/internal.cc
src/librbd/io/ImageDispatchSpec.h
src/librbd/io/ImageDispatcher.cc
src/test/librbd/crypto/luks/test_mock_FlattenRequest.cc
src/test/librbd/crypto/luks/test_mock_FormatRequest.cc
src/test/librbd/crypto/luks/test_mock_LoadRequest.cc
src/test/librbd/crypto/test_mock_FormatRequest.cc
src/test/librbd/crypto/test_mock_LoadRequest.cc
src/test/librbd/deep_copy/test_mock_ObjectCopyRequest.cc
src/test/librbd/exclusive_lock/test_mock_PreReleaseRequest.cc
src/test/librbd/image/test_mock_RefreshRequest.cc
src/test/librbd/io/test_mock_CopyupRequest.cc
src/test/librbd/operation/test_mock_ResizeRequest.cc