C++ Logo

std-proposals

Advanced search

Re: [std-proposals] [[pure]] attribute

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 04 Mar 2025 07:28:12 -0600
On Tuesday, 4 March 2025 05:56:44 Central Standard Time Robin Savonen
Söderholm via Std-Proposals wrote:
> You have 'str.append("...")' in your example. Is that really 'pure' as it
> would need to allocate memory? In the "virtual C++"-machine that may be
> considered "pure" but from a real physical machine it is anything but pure.

And it may also throw.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2025-03-04 13:28:15