From df3bf7445dfd27389551e138333c1b42e92b30ab Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 27 Jun 2014 19:34:26 +0100 Subject: Replace boost::optional with our own implementation --- src/context.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/context.hh') diff --git a/src/context.hh b/src/context.hh index 57780070..a02f11fd 100644 --- a/src/context.hh +++ b/src/context.hh @@ -2,8 +2,7 @@ #define context_hh_INCLUDED #include "selection.hh" - -#include +#include "optional.hh" namespace Kakoune { @@ -34,7 +33,7 @@ public: Context& operator=(const Context&) = delete; Buffer& buffer() const; - bool has_buffer() const { return m_selections; } + bool has_buffer() const { return (bool)m_selections; } Window& window() const; bool has_window() const { return (bool)m_window; } @@ -88,7 +87,7 @@ private: safe_ptr m_client; friend class Client; - boost::optional m_selections; + Optional m_selections; String m_name; -- cgit v1.2.3