Skip to content

Commit a62b543

Browse files
authored
Merge pull request #109 from rchen20/bugfix/chen59/tupleprint
Fix print_tuple namespace.
2 parents ecaeed9 + 49b0037 commit a62b543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/camp/tuple.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ CAMP_HOST_DEVICE constexpr auto apply(Fn&& f, TupleLike&& tup)
471471
{
472472
return ::camp::invoke(std::forward<TupleLike>(tup), std::forward<Fn>(f));
473473
}
474-
} // namespace camp
475474

476475
namespace internal
477476
{
@@ -481,13 +480,14 @@ void print_tuple(std::ostream& os, Tuple const& tup, camp::idx_seq<Idxs...>)
481480
camp::sink((void*)&(os << (Idxs == 0 ? "" : ", ") << camp::get<Idxs>(tup))...);
482481
}
483482
} // namespace internal
483+
} // namespace camp
484484

485485
template <class... Args>
486486
auto operator<<(std::ostream& os, camp::tuple<Args...> const& tup)
487487
-> std::ostream&
488488
{
489489
os << "(";
490-
internal::print_tuple(os, tup, camp::make_idx_seq_t<sizeof...(Args)>{});
490+
::camp::internal::print_tuple(os, tup, camp::make_idx_seq_t<sizeof...(Args)>{});
491491
return os << ")";
492492
}
493493

0 commit comments

Comments
 (0)