diff options
Diffstat (limited to 'src/generate.h')
-rw-r--r-- | src/generate.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/generate.h b/src/generate.h index 25ad41ea..47abcd94 100644 --- a/src/generate.h +++ b/src/generate.h @@ -48,7 +48,9 @@ namespace ledger { class session_t; -class generate_posts_iterator : public posts_iterator +class generate_posts_iterator + : public iterator_facade_base<generate_posts_iterator, post_t *, + boost::forward_traversal_tag> { session_t& session; unsigned int seed; @@ -104,8 +106,8 @@ public: virtual ~generate_posts_iterator() throw() { TRACE_DTOR(generate_posts_iterator); } - - virtual post_t * operator()(); + + virtual void increment(); protected: void generate_string(std::ostream& out, int len, bool only_alpha = false); |