]> src.bluestatic.org Git - zcpointer.git/commit
Fix ref::operator= for non-const lvalue binding to a temporary.
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 8 Oct 2016 19:29:59 +0000 (15:29 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 8 Oct 2016 19:34:45 +0000 (15:34 -0400)
commit27c66f099b5bc0e320f77da82fb4c0a9e36f0265
treeaa6d97d8f4321e646b0a51323df7d92e6ebb6b49
parent7ccad498c42b414dca0050497950fd010a0a2698
Fix ref::operator= for non-const lvalue binding to a temporary.

Implement operator= manually and reimplement the copy-ctor using it, rather than
vice versa. In addition, deleter_ gets changed to a pointer rather than
reference, so that a default ctor can be added.
test.cc
zcpointer.h