From e7c108c77039ca1a05d99b863b15a3e85cb612a9 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 8 May 2018 21:48:17 +1000 Subject: [PATCH] json: remove use of the restrict qualifier This mostly just complicates type manipulations. We can add it back in if performance actually warrants it, or if it becomes an official qualifier. --- json/flat.cpp.rl | 2 -- json/tree.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/json/flat.cpp.rl b/json/flat.cpp.rl index 4884caed..f48b5461 100644 --- a/json/flat.cpp.rl +++ b/json/flat.cpp.rl @@ -180,9 +180,7 @@ json::flat::parse (util::view); MAP0(INSTANTIATE, std::string::iterator, std::string::const_iterator, - const char* restrict, const char*, - char *restrict, char * ) diff --git a/json/tree.cpp b/json/tree.cpp index fe4b8312..d41cccbc 100644 --- a/json/tree.cpp +++ b/json/tree.cpp @@ -230,9 +230,7 @@ json::tree::parse (const util::view&); MAP0(INSTANTIATE, std::string::iterator, std::string::const_iterator, - const char* restrict, const char*, - char* restrict, char * );