Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic: librbd: avoid aggregate-initializing IsWriteOpVisitor #27039

merged 1 commit into from Apr 3, 2019


None yet
6 participants
Copy link

commented Mar 19, 2019

librbd: avoid aggregate-initializing IsWriteOpVisitor
Clang 8 complains about missing dtor, and this circumvents this problem.
error: temporary of type 'boost::static_visitor<bool>' has protected
   return boost::apply_visitor(IsWriteOpVisitor{}, m_request);
note: in instantiation of member function
'librbd::io::ImageDispatchSpec<librbd::ImageCtx>::is_write_op' requested
template class librbd::io::ImageDispatchSpec<librbd::ImageCtx>;
/usr/local/include/boost/variant/static_visitor.hpp:53:5: note: declared
protected here
     ~static_visitor() = default;
1 error generated.
gmake[2]: *** [src/librbd/CMakeFiles/rbd_internal.dir/build.make:895:
src/librbd/CMakeFiles/rbd_internal.dir/io/] Error 1

The details of the problem are explained in more detail in:

Signed-off-by: Willem Jan Withagen <>
(cherry picked from commit 1d7b291)

@tchaikov tchaikov added this to the mimic milestone Mar 19, 2019


This comment has been minimized.

Copy link

commented Apr 2, 2019

@yuriw yuriw requested a review from dillaman Apr 3, 2019

Copy link

left a comment


@yuriw yuriw merged commit 62c2f69 into ceph:mimic Apr 3, 2019

4 checks passed

Docs: build check OK - docs built
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.