We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b0d0fc + 2ccb12a commit 7d9442bCopy full SHA for 7d9442b
1 file changed
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