Describe the bug
A C++ enum named discord::CreateFlags exists, but cannot be used by the user because discord::Core::Create takes a std::uint64_t.
Steps to reproduce
Try using the following code:
discord::Core *core{};
const auto result = discord::Core::Create(0, discord::CreateFlags::NoRequireDiscord, &core);
Expected behavior
The code builds as expected.
Actual behavior
The code does not builds, and a message in the style of argument type "discord::CreateFlags" is incompatible with parameter of type "uint64_t" appears
Implementation specifics
Language: C++
Game Engine: No engine
Additional context
A potential resolution would be adding an overload of discord::Core::Create in the headers which forwards to the overload taking uint64_t, like so:
Describe the bug A C++ enum named
discord::CreateFlags
exists, but cannot be used by the user becausediscord::Core::Create
takes astd::uint64_t
.Steps to reproduce Try using the following code:
Expected behavior The code builds as expected.
Actual behavior The code does not builds, and a message in the style of
argument type "discord::CreateFlags" is incompatible with parameter of type "uint64_t"
appearsImplementation specifics
Additional context A potential resolution would be adding an overload of
discord::Core::Create
in the headers which forwards to the overload takinguint64_t
, like so: