Skip to content

fix(ranges): fix detecting push/push_back/max_size() returning non-void - #157

Open
solbjorn wants to merge 1 commit into
eliaskosunen:masterfrom
solbjorn:ranges-traits
Open

fix(ranges): fix detecting push/push_back/max_size() returning non-void#157
solbjorn wants to merge 1 commit into
eliaskosunen:masterfrom
solbjorn:ranges-traits

Conversation

@solbjorn

Copy link
Copy Markdown

It should use std::void_t<decltype(...)>, otherwise the pattern matching will fail. For example, scn couldn't detect that std::inplace_vector<> has push_back() as it returns &value_type, not void.

It should use `std::void_t<decltype(...)>`, otherwise the pattern
matching will fail. For example, scn couldn't detect that
std::inplace_vector<> has push_back() as it returns &value_type,
not void.

Signed-off-by: Alexander Lobakin <alobakin@mailbox.org>
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