Skip to content

Commit ca1388f

Browse files
authoredMar 23, 2025··
Merge pull request #1850 from ctuu/fix-interface-conflict
Fix conflict with windows.h by renaming 'interface' to '_interface'
2 parents aa137c2 + 07f49f0 commit ca1388f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎include/range/v3/utility/any.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ namespace ranges
6565
{
6666
struct _base {};
6767

68-
struct interface
68+
struct _interface
6969
{
70-
virtual ~interface()
70+
virtual ~_interface()
7171
{}
72-
virtual interface * clone() const = 0;
72+
virtual _interface * clone() const = 0;
7373
virtual std::type_info const & type() const noexcept = 0;
7474
};
7575

7676
template<typename T>
77-
struct impl final : interface
77+
struct impl final : _interface
7878
{
7979
private:
8080
T obj;
@@ -126,7 +126,7 @@ namespace ranges
126126
template<typename T>
127127
friend T const * any_cast(any const *) noexcept;
128128

129-
std::unique_ptr<_any_::interface> ptr_;
129+
std::unique_ptr<_any_::_interface> ptr_;
130130

131131
public:
132132
any() noexcept = default;

0 commit comments

Comments
 (0)
Please sign in to comment.