Add tests for testing the SCARY-ness of iterators

This commit is contained in:
Christian Mazakas
2022-05-20 14:17:43 -07:00
parent 641c9fba9c
commit 2ae686c366
3 changed files with 330 additions and 4 deletions
+2 -4
View File
@@ -500,11 +500,9 @@ namespace test {
friend class const_ptr<T>;
friend struct void_ptr;
T* ptr_;
ptr(T* x) : ptr_(x) {}
public:
T* ptr_;
ptr(T* x) : ptr_(x) {}
ptr() : ptr_(0) {}
explicit ptr(void_ptr const& x) : ptr_((T*)x.ptr_) {}