Skip to content

Conversation

@no92
Copy link
Member

@no92 no92 commented Jan 13, 2026

No description provided.

Comment on lines 35 to 39
template<typename T>
concept Sink = requires (T t, const char *str, char c) {
concept Sink = requires (T t, const typename T::value_type *str, typename T::value_type c) {
t.append(str);
t.append(c);
};
Copy link
Member

Choose a reason for hiding this comment

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

Instead of declaring value_type, it might be better to make the sink concept a template based on the character type, especially if we expect that there are sinks that support both. That'd allow us to type sink<T, char> vs. sink<T, wchar_t> etc.

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.

3 participants