Make std::default_delete utilise static call operator #5507
|
VS 2022 now implements static call operator (). Advantages of using it described in P1169R4. Would it improve code gen/performance if std::default_delete had static operator()? |
Answered by
frederick-vs-ja
Jun 9, 2025
Replies: 1 comment
|
Currently, the standard wording explicitly specifies that I tried to submit an LWG issue to allow all standard stateless functors to have static |
0 replies
Answer selected by
jt-9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the standard wording explicitly specifies that
std::default_delete::operator()is a non-static member function ([unique.ptr.dltr.dflt], [unique.ptr.dltr.dflt1]).I tried to submit an LWG issue to allow all standard stateless functors to have static
operator(), but was replied with something like paper-needed.