Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiple definition compile errors #32

Merged
merged 1 commit into from
Dec 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wise_enum_detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct is_wise_enum
bool, !std::is_same<void, decltype(wise_enum_detail_array(
Tag<T>{}))>::value> {};

WISE_ENUM_CONSTEXPR_14 int strcmp(const char *s1, const char *s2) {
WISE_ENUM_CONSTEXPR_14 inline int strcmp(const char *s1, const char *s2) {
while (*s1 && (*s1 == *s2))
s1++, s2++;
if (*s1 < *s2) {
Expand All @@ -83,7 +83,7 @@ WISE_ENUM_CONSTEXPR_14 int strcmp(const char *s1, const char *s2) {
}
}

WISE_ENUM_CONSTEXPR_14 bool compare(const char *s1, const char *s2) {
WISE_ENUM_CONSTEXPR_14 inline bool compare(const char *s1, const char *s2) {
return strcmp(s1, s2) == 0;
}

Expand Down