Skip to content

Commit f8ae6c9

Browse files
Make OkStatus an inline function to avoid multiple definitions errors (#629)
1 parent 449334d commit f8ae6c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hnswlib/hnswlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class HNSWLIB_NODISCARD Status {
169169
const char* message_;
170170
};
171171

172-
Status OkStatus() { return Status(); }
172+
inline Status OkStatus() { return Status(); }
173173

174174
template <typename T>
175175
class StatusOr {

0 commit comments

Comments
 (0)