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/item.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index ba812175..dbba53a8 100644 --- a/src/item.h +++ b/src/item.h @@ -174,11 +174,7 @@ public: static bool use_aux_date; virtual bool has_date() const { -#if BOOST_VERSION >= 105600 - return _date != NULL; -#else - return _date; -#endif + return static_cast(_date); } virtual date_t date() const { -- cgit v1.2.3