2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-19 04:22:08 +00:00
Files
Emil Dotchevski 56b247d71a Significant refactoring:
- Support for error objects crossing DLL boundaries on Windows via BOOST_LEAF_CFG_WIN32=2.
- Internal TLS interface improvements, separating logical allocation from reading.
- Dynamic allocations (if enabled) for on_error objects now happens before stack unwinding begins.
- BOOST_LEAF_SYMBOL_VISIBLE declarations now separated in config/visibility.hpp.
2025-12-23 17:31:52 -05:00
..
2025-06-01 03:22:57 +02:00

Print File Example

This directory contains several versions of a trivial program which takes a file name on the command line and prints it. Each version uses a different error handling implementation.

  • print_file_leaf_result.cpp reports errors with leaf::result<T>, using an error code enum for classification of failures.

  • print_file_system_result.cpp is the same as above, but using boost::system::result<T> instead of leaf::result<T>. This demonstrates the ability of LEAF to transport arbitrary error objects using an external result type, rather than boost::leaf::result<T>.

  • print_file_exceptions.cpp throws on error, using an error code enum for classification of failures.