diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-06-27 19:34:26 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-06-27 21:10:09 +0100 |
| commit | df3bf7445dfd27389551e138333c1b42e92b30ab (patch) | |
| tree | a45f531659dc443e151df53c54df6ec610e98652 /src/context.hh | |
| parent | 7aa78d726a54fa57a8dc5ed973ab0b30eeba6bf3 (diff) | |
Replace boost::optional with our own implementation
Diffstat (limited to 'src/context.hh')
| -rw-r--r-- | src/context.hh | 7 |
1 files changed, 3 insertions, 4 deletions
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 <boost/optional.hpp> +#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<Client> m_client; friend class Client; - boost::optional<SelectionList> m_selections; + Optional<SelectionList> m_selections; String m_name; |
