Skip to content

Commit 478a3fd

Browse files
committed
make MemberRef constructible for compilers lacking c++20 support
1 parent cbb74a9 commit 478a3fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/mrdox/Metadata/Record.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ struct MemberRef
5959
{
6060
SymbolID id;
6161
Access access;
62+
63+
constexpr MemberRef() = default;
64+
65+
constexpr MemberRef(
66+
const SymbolID& id_,
67+
Access access_)
68+
: id(id_)
69+
, access(access_)
70+
{
71+
}
6272
};
6373

6474
/** Bit constants used with Record metadata

0 commit comments

Comments
 (0)