C++ Logo

std-proposals

Advanced search

Re: [std-proposals] this return type

From: Jan Schultke <janschultke_at_[hidden]>
Date: Fri, 7 Apr 2023 23:50:53 +0200
Yes, contrary to what I first said, this is not a case that would get optimized.

This proposal only prevents re-virtualization in call chains, which
means you are free to write:
devirtualized.a().b().c()

instead of:
devirtualized.a()
devirtualized.b()
devirtualized.c()

Received on 2023-04-07 21:51:05