Skip to content

Commit

Permalink
RefPtrTraits: struct/class mismatch in forward declaration
Browse files Browse the repository at this point in the history
Problem:
- Building with clang is broken because of the `struct` vs `class`
  mismatch between the definition and declaration.

Solution:
- Change `class` to `struct` in the forward declaration.
  • Loading branch information
ldm5180 authored and awesomekling committed Nov 11, 2020
1 parent de6483b commit 5570b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AK/Forward.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ template<typename T>
class Optional;

template<typename T>
class RefPtrTraits;
struct RefPtrTraits;

template<typename T, typename PtrTraits = RefPtrTraits<T>>
class RefPtr;
Expand Down

0 comments on commit 5570b16

Please sign in to comment.