P1284R0
Allowing Inlining of Replaceable Functions

Published Proposal,

This version:
http://wg21.link/P1284R0
Author:
(Google)
Audience:
EWG
Project:
ISO/IEC JTC1/SC22/WG21 14882: Programming Language — C++

Abstract

Allow replaceable functions to be inlined

1. Motivation

For many allocations (and deallocations, when using sized delete), it would be profitable to inline the implementation.

This paper focuses on the ability to specify replaceable functions as inline. This restriction came about as the resolution to [LWG404], adopted at the Sydney meeting [N1629].

2. Proposal

Wording is relative to [N4762].

The program’s declarations shall not be specified as inline. No diagnostic is required.

References

Informative References

[LWG404]
May a replacement function be declared inline?. 2016-12-23. URL: http://cplusplus.github.io/LWG/lwg-defects.html#404
[N1629]
Minutes of J16 Meeting No. 38/WG21 Meeting No. 33, March 22-26, 2004. 2004-04-08. URL: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1629.html
[N4762]
Working Draft, Standard for Programming Language C++. 2018-07-07. URL: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4762.pdf
[P1220]
Controlling When Inline Functions are Emitted. 2018-10-05. URL: https://wg21.link/P1220