Replace std::string and const char* CreateSharedString with string_view (#6315)
authorAustin Schuh <AustinSchuh@users.noreply.github.com>
Mon, 7 Dec 2020 19:49:24 +0000 (11:49 -0800)
committerGitHub <noreply@github.com>
Mon, 7 Dec 2020 19:49:24 +0000 (11:49 -0800)
commitfd4c1b5ff7aca18220ddb0d3b82fd831924533ba
tree16759484ed0478d8640ebf5b28f5701f6b6347dc
parentbc7eb8adeb1ce73b13bacdf7a6904de27a1e5913
Replace std::string and const char* CreateSharedString with string_view (#6315)

It is useful to be able to call CreateSharedString with a string_view.
A string_view can be implicitly converted from a std::string or a const
char*.  This means if string_view is available, we can use it instead of
both other functions and get all 3.
include/flatbuffers/flatbuffers.h