Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
boost/leaf.hpp
✓ #include <boost/leaf.hpp>
Use Boost.LEAF for lightweight error handling with result types.
#include <boost/leaf.hpp>
#include <iostream>
boost::leaf::result<int> compute() {
return 42;
}
int main() {
auto r = compute();
if (r) {
std::cout << *r << std::endl;
}
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.