Skip to content

Commit

Permalink
fix clang tidy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSinn committed Aug 26, 2024
1 parent 1675ff3 commit a8d3785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Base/AMReX_CTOParallelForImpl.H
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace detail

template <class L, class F, typename... As>
bool
AnyCTO_helper2 (L&& l, F&& f, TypeList<As...>,
AnyCTO_helper2 (const L& l, const F& f, TypeList<As...>,
std::array<int,sizeof...(As)> const& runtime_options)
{
if (runtime_options == std::array<int,sizeof...(As)>{As::value...}) {
Expand All @@ -59,7 +59,7 @@ namespace detail

template <class L, class F, typename... PPs, typename RO>
void
AnyCTO_helper1 (L&& l, F&& f, TypeList<PPs...>, RO const& runtime_options)
AnyCTO_helper1 (const L& l, const F& f, TypeList<PPs...>, RO const& runtime_options)
{
bool found_option = (false || ... || AnyCTO_helper2(l, f, PPs{}, runtime_options));
amrex::ignore_unused(found_option);
Expand Down

0 comments on commit a8d3785

Please sign in to comment.