Anything outside storage is always a pointer.

This commit is contained in:
Daniel Kirchner
2020-03-23 15:34:10 +01:00
committed by chriseth
parent 148b87c977
commit fe659ceb41
9 changed files with 98 additions and 9 deletions
+3 -1
View File
@@ -701,7 +701,9 @@ public:
/// pointer type, state variables are bound references. Assignments to pointers or deleting
/// them will not modify storage (that will only change the pointer). Assignment from
/// non-storage objects to a variable of storage pointer type is not possible.
bool isPointer() const { return m_isPointer; }
/// For anything other than storage, this always returns true because assignments
/// never change the contents of the original value.
bool isPointer() const;
bool operator==(ReferenceType const& _other) const
{