Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error C2352: 'SleepyDiscord::Snowflake<SleepyDiscord::Server>::operator ==': a call of a non-static member function requires an object #274

Open
CohortMinseok opened this issue Jul 14, 2024 · 0 comments

Comments

@CohortMinseok
Copy link

Built using vcpkg as a static library.

Did not have this issue before but as soon as I was updating one of my older projects, I had to adjust this function in the snowflake.h header file on line 73.

Original Code:
return operator==(static_cast<DiscordObject>(object));

Adjusted Code:
return this->operator==(static_cast<DiscordObject>(object));

Hope this fixes the issue to anyone having this issue.

Visual Studio 2022
SDK Version: 10.0.22621.0
Platform Toolset: v143
C++ Language Standard: C++17 Standard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant