[Groonga-commit] groonga/grnxx [master] Enable conversion from nullptr to grnxx::Slice.

Back to archive index

susumu.yata null+****@clear*****
Tue Apr 9 16:59:58 JST 2013


susumu.yata	2013-04-09 16:59:58 +0900 (Tue, 09 Apr 2013)

  New Revision: adee4d244e13016ff4b73dfecad6f03e12aba902
  https://github.com/groonga/grnxx/commit/adee4d244e13016ff4b73dfecad6f03e12aba902

  Message:
    Enable conversion from nullptr to grnxx::Slice.

  Modified files:
    lib/grnxx/slice.hpp

  Modified: lib/grnxx/slice.hpp (+2 -0)
===================================================================
--- lib/grnxx/slice.hpp    2013-04-09 13:33:20 +0900 (96513cd)
+++ lib/grnxx/slice.hpp    2013-04-09 16:59:58 +0900 (8a2d68c)
@@ -26,6 +26,8 @@ class Slice {
  public:
   // Create an empty (zero-size) slice.
   Slice() : ptr_(nullptr), size_(0) {}
+  // Create an empty (zero-size) slice.
+  Slice(std::nullptr_t) : ptr_(nullptr), size_(0) {}
   // Create a slice that refers to a zero-terminated string.
   Slice(const char *str)
     : ptr_(reinterpret_cast<const uint8_t *>(str)),
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index