Skip to content

Commit 7d9442b

Browse files
Merge pull request #45 from intuicell/master
Add missing inline
2 parents 7b0d0fc + 2ccb12a commit 7d9442b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ typedef std::string StringOrView;
9595
namespace internal {
9696

9797
/// 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) {
98+
inline const StringOrView InitString(const char* from_c_interface) {
9999
#if GIT_VERSION_USE_STRING_VIEW
100100
return StringOrView { from_c_interface, std::strlen(from_c_interface) };
101101
#else

0 commit comments

Comments
 (0)