eina-cxx: Add overload for std::nullptr_t to stringview
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Wed, 15 Jun 2016 18:47:30 +0000 (15:47 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Wed, 15 Jun 2016 18:50:04 +0000 (15:50 -0300)
src/bindings/cxx/eina_cxx/eina_string_view.hh

index 265b7e1..577742e 100644 (file)
@@ -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)
 //    {}