From 8253930cdd8a3bedb3d390aabf91b782406da224 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 28 May 2013 12:59:17 +0100 Subject: [PATCH] [run] define some more constructors --- persistent-data/run.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/persistent-data/run.h b/persistent-data/run.h index 5b4ed69..78db2a5 100644 --- a/persistent-data/run.h +++ b/persistent-data/run.h @@ -12,7 +12,19 @@ namespace base { public: typedef boost::optional maybe; - explicit run(maybe begin = maybe(), maybe end = maybe()) + run() { + } + + explicit run(T const &b) + : begin_(b) { + } + + run(T const &b, T const &e) + : begin_(b), + end_(e) { + } + + explicit run(maybe begin, maybe end) : begin_(begin), end_(end) { }