Skip to content

Commit

Permalink
Merge pull request #509 from evoskuil/master
Browse files Browse the repository at this point in the history
Adapt to pmr vectors changes.
  • Loading branch information
evoskuil committed Jul 7, 2024
2 parents 732a9b7 + 42eaf4d commit cdea3af
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,19 @@ namespace std {
std::ostream& operator<<(std::ostream& stream,
const system::data_slice& slice) NOEXCEPT;

// vector<Type> -> join(<<Type)
// std::vector<Type> -> join(<<Type)
template <typename Type>
std::ostream& operator<<(std::ostream& stream,
const std::vector<Type>& values) NOEXCEPT
{
// Ok when testing serialize because only used for error message out.
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
stream << system::serialize(values);
BC_POP_WARNING()
return stream;
}

// std_vector<Type> -> join(<<Type)
template <typename Type>
std::ostream& operator<<(std::ostream& stream,
const std_vector<Type>& values) NOEXCEPT
Expand All @@ -66,7 +78,7 @@ std::ostream& operator<<(std::ostream& stream,
return stream;
}

// array<Type, Size> -> join(<<Type)
// std_array<Type, Size> -> join(<<Type)
template <typename Type, size_t Size>
std::ostream& operator<<(std::ostream& stream,
const std_array<Type, Size>& values) NOEXCEPT
Expand Down

0 comments on commit cdea3af

Please sign in to comment.