C++ Logo


Advanced search

Re: Values of objects

From: Krystian Stasiowski <sdkrystian_at_[hidden]>
Date: Wed, 28 Aug 2019 14:53:54 -0400
> The right way to define this is to say that objects have a value representation consistingof a fixed subset of the bits of their object representation, and that the value of an objectis the sequence of bits in the value representation.Not quite, while the value representation of an trivially copyable type will appear in the object representation, for an object of non-trivially copyable type, the value is a user established thing: such as `std::string`, since it has a pointer to external data.

Received on 2019-08-28 13:56:01