From bcaca24de4264f89a94069701361988007e22e58 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 27 Jul 2015 20:37:16 +0100 Subject: Convert boost::optional objects to bool explicitly. Fixes #417. --- src/times.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/times.h') diff --git a/src/times.h b/src/times.h index 421d1462..e1a9e847 100644 --- a/src/times.h +++ b/src/times.h @@ -500,11 +500,7 @@ public: void stabilize(const optional& date = none); bool is_valid() const { -#if BOOST_VERSION >= 105600 - return start != NULL; -#else - return start; -#endif + return static_cast(start); } /** Find the current or next period containing date. Returns false if -- cgit v1.2.3