Skip to content

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

Description

@CohortMinseok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions