From 48aec0f093ff6494a3e4f7cd5166cb4a27c16814 Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Sun, 10 May 2015 12:45:28 +0200 Subject: boost::none_t no longer convertible from literal 0 in 1.58 Instead we use boost::none, which has been documented since boost 1.34.0. --- 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..cc980858 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 start != boost::none; } /** Find the current or next period containing date. Returns false if -- cgit v1.2.3