Skip to content

Commit eb76362

Browse files
committed
SymbolID is a distinct type
1 parent 97f5aff commit eb76362

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/mrdox/Metadata/Symbols.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ namespace mrdox {
2525
USR. A USRs is a string that provide an
2626
unambiguous reference to a symbol.
2727
*/
28-
using SymbolID = std::array<unsigned char, 20>;
28+
struct SymbolID :
29+
std::array<std::uint8_t, 20>
30+
{
31+
constexpr SymbolID() = default;
32+
constexpr SymbolID(const std::array<std::uint8_t, 20>& arr)
33+
: array(arr)
34+
{
35+
}
36+
};
2937

3038
/** The empty Symbol ID.
3139

0 commit comments

Comments
 (0)