Actions
Bug #8416
closedabd.h is not C++ friendly
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2017-06-21
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
A C++ compiler fails to compile abd_is_linear(), which is an inline function defined in abd.h, with the following error:
error: cannot initialize return object of type 'boolean_t' with an rvalue of type 'bool'
That happens because a bool can not be converted to an enum in C++.
That's a problem because abd.h can be visible through other header files that a C++ program that works with ZFS can include.
Actions