https://src.bluestatic.org
/
zcpointer.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f777dad
)
Add a test for unwrapping member<T>.
author
Robert Sesek <rsesek@bluestatic.org>
Wed, 12 Oct 2016 01:41:16 +0000
(21:41 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Wed, 12 Oct 2016 01:41:16 +0000
(21:41 -0400)
test.cc
patch
|
blob
|
history
diff --git
a/test.cc
b/test.cc
index 0e46e9437404901e0c0c588a5989185db9d8dd58..d28d5912be1adfd582126a9585286cd432529d3d 100644
(file)
--- a/
test.cc
+++ b/
test.cc
@@
-63,10
+63,13
@@
void TestReset() {
template <typename T>
void TestUnwrap() {
zc::owned<T> t(new T());
-
//
T* unwrap = t.get();
+ T* unwrap = t.get();
zc::ref<T> ref = t.get();
T* unwrap2 = ref;
+
+ zc::member<T> tm;
+ T* tp = &tm;
}
void TestMove() {