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

How about operator<< #1

Open
akimd opened this issue Oct 29, 2014 · 1 comment
Open

How about operator<< #1

akimd opened this issue Oct 29, 2014 · 1 comment

Comments

@akimd
Copy link

akimd commented Oct 29, 2014

Hi!

Well, this is not a feature request, it's just that I'm not sure what's the preferred place for discussions about hash_append.

I was wondering if you had considered using a stream-like syntax for hash_append. We are already familiar with it.

Thanks!

@HowardHinnant
Copy link
Owner

That syntax would make it more difficult for the class author to write the hash support for their class. They would have to do enable_if to restrict the HashAlgorithm template parameter from being a std::ostream-derived type, lest it get confused with the stream insertion code for their class.

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

No branches or pull requests

2 participants