Skip to content

Conversation

@cacharle
Copy link
Contributor

@cacharle cacharle commented Jan 9, 2026

I'd like to be able to construct a message_t with std::vector<char> or other containers with a character as their value type.

I assume the condition to disallow this was to avoid conflicts with std::string and std::string_view.

@cacharle cacharle force-pushed the allow-message-t-contruction-from-char-containers branch 2 times, most recently from 3ecbe6a to 1bc926e Compare January 28, 2026 20:30
@cacharle
Copy link
Contributor Author

Not sure how to test this more (How to test that the std::string and std::string_view constructors are indeed called instead of the range one)..

@cacharle cacharle force-pushed the allow-message-t-contruction-from-char-containers branch from 1bc926e to 5aae699 Compare January 28, 2026 21:05
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.

1 participant