Skip to content

关于完美转发的疑问 #577

@ExplorerFzw

Description

@ExplorerFzw

在src/CBasic/CAllocator.h的safeMallocTemplateCObject函数中,完美转发的写法是std::forward<Args&&>(args)...,但是常见的写法是std::forward(args)... 为什么要采用这样的方案阿?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions