Skip to content

Commit

Permalink
Relax privateness for GCC < 13 as well
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
  • Loading branch information
jjerphan committed Apr 23, 2024
1 parent 14b6fb2 commit 2c67b1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/sparrow/iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ namespace sparrow
it.advance(n);
}

#if _WIN32 // Workaround for access issue with msvc, when friend is involved
// On MSVC and GCC < 13, those methods need to be public to be accessible by friend functions.
#if _WIN32 || __GNUC__ < 13

public:

Expand All @@ -143,11 +144,14 @@ namespace sparrow
{
return lhs.less_than(rhs);
}
#if _WIN32 // Workaround for access issue with msvc, when friend is involved

// On MSVC and GCC < 13, those methods need to be public to be accessible by friend functions.
#if _WIN32 || __GNUC__ < 13

private:

#endif

template <class Derived, class E, class T, class R, class D>
friend class iterator_root_base;

Expand Down

0 comments on commit 2c67b1d

Please sign in to comment.