Skip to content

Commit

Permalink
avoid auto
Browse files Browse the repository at this point in the history
  • Loading branch information
fnrizzi committed Oct 17, 2023
1 parent 0c0cafa commit b26a1f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions containers/src/Kokkos_Bitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ namespace Impl {
template <typename... P>
auto with_updated_label(const ViewCtorProp<P...>& view_ctor_prop,
const std::string& label) {
using vcp_t = ViewCtorProp<P...>;
//! If the label property is already set, append. Otherwise, set label.
if constexpr (ViewCtorProp<P...>::has_label) {
auto new_ctor_props(view_ctor_prop);
if constexpr (vcp_t::has_label) {
vcp_t new_ctor_props(view_ctor_prop);
static_cast<ViewCtorProp<void, std::string>&>(new_ctor_props)
.value.append(label);
return new_ctor_props;
Expand Down

0 comments on commit b26a1f7

Please sign in to comment.