|
7 | 7 |
|
8 | 8 | #include <boost/leaf/config.hpp> |
9 | 9 | #include <boost/leaf/context.hpp> |
10 | | -#include <boost/leaf/detail/diagnostics_writer.hpp> |
11 | 10 | #include <boost/leaf/handle_errors.hpp> |
12 | 11 |
|
13 | 12 | namespace boost { namespace leaf { |
14 | 13 |
|
15 | 14 | class diagnostic_info: public error_info |
16 | 15 | { |
17 | 16 | void const * tup_; |
18 | | - void (*serialize_tuple_contents_)(writer &, void const *, error_id); |
| 17 | + void (*serialize_tuple_contents_)(serialization::writer &, void const *, error_id); |
19 | 18 |
|
20 | 19 | protected: |
21 | 20 |
|
@@ -48,7 +47,7 @@ class diagnostic_info: public error_info |
48 | 47 | template <class CharT, class Traits> |
49 | 48 | friend std::ostream & operator<<( std::basic_ostream<CharT, Traits> & os, diagnostic_info const & x ) |
50 | 49 | { |
51 | | - detail::diagnostics_writer w(os, x.error(), x.source_location(), x.exception()); |
| 50 | + serialization::diagnostics_writer w(os, x.error(), x.source_location(), x.exception()); |
52 | 51 | #if BOOST_LEAF_CFG_DIAGNOSTICS |
53 | 52 | x.write_to_(w); |
54 | 53 | #else |
@@ -119,7 +118,7 @@ class diagnostic_details: public diagnostic_info |
119 | 118 | template <class CharT, class Traits> |
120 | 119 | friend std::ostream & operator<<( std::basic_ostream<CharT, Traits> & os, diagnostic_details const & x ) |
121 | 120 | { |
122 | | - detail::diagnostics_writer w(os, x.error(), x.source_location(), x.exception()); |
| 121 | + serialization::diagnostics_writer w(os, x.error(), x.source_location(), x.exception()); |
123 | 122 | #if BOOST_LEAF_CFG_DIAGNOSTICS |
124 | 123 | x.diagnostic_info::write_to_(w); |
125 | 124 | w.set_prefix("\nDiagnostic details:" BOOST_LEAF_CFG_DIAGNOSTICS_FIRST_DELIMITER); |
@@ -179,7 +178,7 @@ class diagnostic_details: public diagnostic_info |
179 | 178 | template <class CharT, class Traits> |
180 | 179 | friend std::ostream & operator<<( std::basic_ostream<CharT, Traits> & os, diagnostic_details const & x ) |
181 | 180 | { |
182 | | - detail::diagnostics_writer w(os, x.error(), x.source_location(), x.exception()); |
| 181 | + serialization::diagnostics_writer w(os, x.error(), x.source_location(), x.exception()); |
183 | 182 | #if BOOST_LEAF_CFG_DIAGNOSTICS |
184 | 183 | x.diagnostic_info::write_to_(w); |
185 | 184 | os << "\nboost::leaf::diagnostic_details N/A due to BOOST_LEAF_CFG_CAPTURE=0"; |
|
0 commit comments