Skip to content

Compiler Error C2280 with std::dynamic_pointer_cast (/GR-) #594

@tvinhkhai

Description

@tvinhkhai

Hello,

I encounter compiler error C2280 when trying compiling with /GR- (need to change it to /GR).
Severity Code Description Project File Line Suppression State
Error C2280 'std::shared_ptr<_Ty> std::dynamic_pointer_cast<... &&) noexcept': attempting to reference a deleted function

The issue is std::dynamic_pointer_cast need /GR, could you please advise me if all std::dynamic_pointer_cast could be removed (they seems to cast to the same class or base class)?
TBH, I don't understand why do we need std::dynamic_pointer_cast...

Best Regards,
Khai

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions