From a592199068b4c7d8ec41f5d915e0a793e7de7dd4 Mon Sep 17 00:00:00 2001 From: ioioioio Date: Thu, 4 Jul 2019 11:50:35 -0400 Subject: [PATCH] readme is aware of namespace (#206) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6c720f284..3efe5f0ef 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ Under Windows, we build some tools using the windows/dirent_portable.h file (whi ```C #include "simdjson/jsonparser.h" +using namespace simdjson; /... @@ -89,6 +90,7 @@ of memory allocation with each new JSON document: ```C #include "simdjson/jsonparser.h" +using namespace simdjson; /... @@ -106,6 +108,7 @@ Though the `padded_string` class is recommended for best performance, you can ca ```C #include "simdjson/jsonparser.h" +using namespace simdjson; /... std::string mystring = ... // @@ -125,6 +128,7 @@ or ```C #include "simdjson/jsonparser.h" +using namespace simdjson; /... @@ -149,6 +153,7 @@ copy the files in your project in your include path. You can then include them q #include #include "simdjson.h" #include "simdjson.cpp" +using namespace simdjson; int main(int argc, char *argv[]) { const char * filename = argv[1]; padded_string p = get_corpus(filename);