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

Fixed issue #775. Mark the ConvertibleFromAny constructor as explicit, and fix operator overload issue for Unprintable #821

Merged
merged 2 commits into from Jul 14, 2016

Conversation

mazong1123
Copy link
Contributor

I've seen the fix somewhere a couple of weeks ago, and I failed to find the source again. I'm actually not the author of this PR, someone else has already provided the exactly same solution somewhere.

Anyway, this PR fixes the issue #775 somehow.

private:
char c_;
};

inline bool operator==(const Unprintable&, /* lhs */ const Unprintable& /* rhs */) { return true; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inline bool operator==(const Unprintable& /* lhs */,
                       const Unprintable& /* rhs */) {
  return true;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I reformat the code style as your note and submit a new PR again?

@mazong1123
Copy link
Contributor Author

@BillyDonahue just formatted the operator== method coding style.

PS: The appveryor build for MSVC 14 always failed. But that should be caused by another issue. Please check if this patch fix #775 :)

@BillyDonahue
Copy link
Contributor

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants