C++ Logo


Advanced search

[std-proposals] Drop same sequence of tokens for inline

From: sasho648 <sasho648_at_[hidden]>
Date: Thu, 4 May 2023 20:11:50 +0300
So why does inline functions need to have the same sequence of tokens in
different TU - imagine in a TU there is a preprocessor define that changes
the function definition - it would make sense this not to be UB.

In C inline functions have internal linkage - it would make the same sense
for C++.

Like I don't see a reason requiring inline functions to have the same body
- regardless of the statement above.

Received on 2023-05-04 17:12:03