Skip to content

Commit

Permalink
Adding range type concept check
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Oct 2, 2024
1 parent 2af40f9 commit 7cabfe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/views/AnyView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ class AnyView :
*
* @param[in] container the container or range to be type erased
*/
template < typename Container >
template < typename Container,
typename = std::enable_if_t< njoy::tools::std20::ranges::range< Container > > >
constexpr AnyView( Container&& container ) :
AnyView( Iterator( container.begin() ), Iterator( container.end() ) ) {}

Expand Down

0 comments on commit 7cabfe0

Please sign in to comment.