Skip to content

Commit

Permalink
remove dynamic cownset changes. Added through PR44
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalgupta97 committed Aug 30, 2024
1 parent 142e7e1 commit 17594d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 351 deletions.
21 changes: 0 additions & 21 deletions src/rt/cpp/cown_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,4 @@ namespace verona::cpp
cown_array& operator=(cown_array&&) = delete;
cown_array& operator=(const cown_array&) = delete;
};

/* A cown_array<const T> is used to mark that the cown is being accessed as
* read-only. (This combines the type as the capability. We do not have deep
* immutability in C++, so acquired_cown<const T> is an approximation.)
*
* We use inheritance to allow us to construct a cown_array<const T> from a
* cown_array<T>.
*/
template<typename T>
class cown_array<const T> : public cown_array<T>
{
public:
cown_array(const cown_array<T>& other) : cown_array<T>(other){};
};

template<typename T>
cown_array<const T> read(cown_array<T> cown)
{
Logging::cout() << "Read returning const array ptr" << Logging::endl;
return cown;
}
}
330 changes: 0 additions & 330 deletions test/func/dynamic-cownset-readonly/dynamic-cownset-readonly.cc

This file was deleted.

0 comments on commit 17594d2

Please sign in to comment.