We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0d0fc commit 2ccb12aCopy full SHA for 2ccb12a
git.h
@@ -95,7 +95,7 @@ typedef std::string StringOrView;
95
namespace internal {
96
97
/// Short-hand method for initializing a std::string or std::string_view given a C-style const char*.
98
-const StringOrView InitString(const char* from_c_interface) {
+inline const StringOrView InitString(const char* from_c_interface) {
99
#if GIT_VERSION_USE_STRING_VIEW
100
return StringOrView { from_c_interface, std::strlen(from_c_interface) };
101
#else
0 commit comments