|
|
|
|
|
by jasonhansel
1650 days ago
|
|
I believe that "devirtualization"--the optimization mentioned in the OP--will do exactly what you're describing, by rewriting the virtual function call as a static call to the allocator when the vtable can be determined from the callsite at compile-time. |
|