Skip to content

Commit

Permalink
Fixing name lookup issue with operator<< and array_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-parent committed Nov 13, 2024
1 parent 57e3f22 commit 01ff792
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions adobe/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ inline void push_back(array_t& v, any_regular_t x) { v.push_back(std::move(x));

#ifdef ADOBE_STD_SERIALIZATION

// To be findable by ADL, the operator must be in the same namespace as `any_regular_t.`
namespace version_1 {

inline std::ostream& operator<<(std::ostream& out, const array_t& x) {
out << begin_sequence;

Expand All @@ -46,6 +49,8 @@ inline std::ostream& operator<<(std::ostream& out, const array_t& x) {
return out;
}

} // namespace version_1

#endif

/**************************************************************************************************/
Expand Down
7 changes: 0 additions & 7 deletions adobe/manip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@

#include <iostream>

/*
REVISIT (sean-parent): As far as I can determine, this file does not use adobe/serializable.hpp
However, if it is not included here, the build fails for C++17 under MSVC only. I have not been
able to determine why this is the case.
*/
#include <adobe/serializable.hpp>

/**************************************************************************************************/

namespace adobe {
Expand Down

0 comments on commit 01ff792

Please sign in to comment.