You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using Catch::Generators::from_range with plain array fails: type 'T *[6]' cannot be used prior to '::' because it has no members. That's because the function is defined with typename ResultType = typename Container::value_type .
I think the simplest solution without ADL/non-ADL begin(c) is to add a direct specialization for arrays.
Describe the bug
Using
Catch::Generators::from_range
with plain array fails:type 'T *[6]' cannot be used prior to '::' because it has no members
. That's because the function is defined withtypename ResultType = typename Container::value_type
.I think the simplest solution without ADL/non-ADL
begin(c)
is to add a direct specialization for arrays.Expected behavior
... It works.
Reproduction steps
https://godbolt.org/z/6r6Gh4M18
Platform information:
Not relevant.
The text was updated successfully, but these errors were encountered: