From 6d520dafec98bb4ebb7e40bd5110a5cbe5ebb47e Mon Sep 17 00:00:00 2001 From: Aleksi Lindeman Date: Fri, 9 Nov 2018 09:44:08 +0100 Subject: Append user to group if user already exists instead of throwing --- src/DataView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/DataView.cpp') diff --git a/src/DataView.cpp b/src/DataView.cpp index a5232f3..f94b2d8 100644 --- a/src/DataView.cpp +++ b/src/DataView.cpp @@ -1,5 +1,6 @@ #include "../include/odhtdb/DataView.hpp" -#include +#include "../include/odhtdb/bin2hex.hpp" +#include namespace odhtdb { @@ -12,4 +13,9 @@ namespace odhtdb { return !operator==(other); } + + std::string DataView::toString() const + { + return bin2hex((const char*)data, size); + } } -- cgit v1.2.3