Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to pmr vectors changes. #509

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading