Project

General

Profile

Actions

Bug #45669

closed

cephfs: Include buffer declaration when using buffers

Added by Willem Jan Withagen almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Clang complains:
/home/jenkins/workspace/ceph-master/src/tools/cephfs/MetaTool.cc:419:30: error: invalid operands to binary expression ('basic_ostream<char, std::__1::char_traits<char> >' and 'buffer::error')
<< ": " << err << std::endl;
~~~~~ ^ ~~~
/usr/include/c++/v1/ostream:219:20: note: candidate function not viable: no known conversion from 'buffer::error' to 'const void ' for 1st argument; take the address of the argument with &
basic_ostream& operator<<(const void
_p);
^
/usr/include/c++/v1/type_traits:4843:3: note: candidate function template not viable: no known conversion from 'basic_ostream<char, std::
_1::char_traits<char> >' to 'std::byte' for 1st argument
operator<< (byte __lhs, _Integer __shift) noexcept
^

Actions #1

Updated by Willem Jan Withagen almost 4 years ago

  • Pull request ID set to 35210
Actions #3

Updated by Kefu Chai almost 4 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF