@@ -96,7 +96,7 @@ struct TestMockCryptoLuksFlattenRequest : public TestMockFixture {
9696 EXPECT_CALL (*mock_image_ctx->io_image_dispatcher , send (_))
9797 .WillOnce (Invoke ([this , offset,
9898 length](io::ImageDispatchSpec* spec) {
99- auto * read = boost::get <io::ImageDispatchSpec::Read>(
99+ auto * read = std::get_if <io::ImageDispatchSpec::Read>(
100100 &spec->request );
101101 ASSERT_TRUE (read != nullptr );
102102
@@ -122,7 +122,7 @@ struct TestMockCryptoLuksFlattenRequest : public TestMockFixture {
122122 void expect_image_write () {
123123 EXPECT_CALL (*mock_image_ctx->io_image_dispatcher , send (_))
124124 .WillOnce (Invoke ([this ](io::ImageDispatchSpec* spec) {
125- auto * write = boost::get <io::ImageDispatchSpec::Write>(
125+ auto * write = std::get_if <io::ImageDispatchSpec::Write>(
126126 &spec->request );
127127 ASSERT_TRUE (write != nullptr );
128128
@@ -145,7 +145,7 @@ struct TestMockCryptoLuksFlattenRequest : public TestMockFixture {
145145 void expect_image_flush (int r) {
146146 EXPECT_CALL (*mock_image_ctx->io_image_dispatcher , send (_)).WillOnce (
147147 Invoke ([r](io::ImageDispatchSpec* spec) {
148- ASSERT_TRUE (boost::get <io::ImageDispatchSpec::Flush>(
148+ ASSERT_TRUE (std::get_if <io::ImageDispatchSpec::Flush>(
149149 &spec->request ) != nullptr );
150150 spec->dispatch_result = io::DISPATCH_RESULT_COMPLETE;
151151 spec->aio_comp ->set_request_count (1 );
0 commit comments