diff options
Diffstat (limited to 'boost/spirit/home/karma/detail/output_iterator.hpp')
-rw-r--r-- | boost/spirit/home/karma/detail/output_iterator.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/boost/spirit/home/karma/detail/output_iterator.hpp b/boost/spirit/home/karma/detail/output_iterator.hpp index f49c8a0407..87980b7690 100644 --- a/boost/spirit/home/karma/detail/output_iterator.hpp +++ b/boost/spirit/home/karma/detail/output_iterator.hpp @@ -79,6 +79,18 @@ namespace boost { namespace spirit { namespace karma { namespace detail return track_position_data.get_count(); } + // return the current line in the output + std::size_t get_line() const + { + return track_position_data.get_line(); + } + + // return the current column in the output + std::size_t get_column() const + { + return track_position_data.get_column(); + } + private: position_sink track_position_data; // for position tracking }; |