From 512fb7f39b9bcbd0630bba84e5a3f794f622be06 Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Wed, 15 Jun 2016 15:47:30 -0300 Subject: [PATCH] eina-cxx: Add overload for std::nullptr_t to stringview --- src/bindings/cxx/eina_cxx/eina_string_view.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bindings/cxx/eina_cxx/eina_string_view.hh b/src/bindings/cxx/eina_cxx/eina_string_view.hh index 265b7e1..577742e 100644 --- a/src/bindings/cxx/eina_cxx/eina_string_view.hh +++ b/src/bindings/cxx/eina_cxx/eina_string_view.hh @@ -48,6 +48,10 @@ public: : _str(c_str), _len(Traits::length(c_str)) {} + basic_string_view(std::nullptr_t) + : _str(NULL), _len(0) + {} + // basic_string_view(CharT const* c_str, size_type len) noexcept // : _str(c_str), _len(len) // {} -- 2.7.4