From: Felipe Magno de Almeida Date: Wed, 15 Jun 2016 18:47:30 +0000 (-0300) Subject: eina-cxx: Add overload for std::nullptr_t to stringview X-Git-Tag: upstream/1.20.0~5700 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=512fb7f39b9bcbd0630bba84e5a3f794f622be06;p=platform%2Fupstream%2Fefl.git eina-cxx: Add overload for std::nullptr_t to stringview --- 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) // {}