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()? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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.