tests: run memcached verbosely, catch output and show it on failure
[awesomized/libmemcached] / libtest / vchar.cc
index 4af110b40e800988eeac7854204f64eb0650d582..a4bddfdeda098eb8aa9d0523b90b3ad1f65114a0 100644 (file)
@@ -160,7 +160,7 @@ void make_vector(libtest::vchar_t& arg, const char *str, size_t length)
 
 std::ostream& operator<<(std::ostream& output, const libtest::vchar_t& arg)
 {
-  std::string tmp= libtest::printer(&arg[0], arg.size());
+  std::string tmp= libtest::printer(arg.data(), arg.size());
   output << tmp <<  "[" << arg.size() << "]";
 
   return output;