From c6696e6605f134fa9cfd304aa38e19b9598d3ae8 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 11 Oct 2016 21:41:16 -0400 Subject: [PATCH] Add a test for unwrapping member. --- test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test.cc b/test.cc index 0e46e94..d28d591 100644 --- a/test.cc +++ b/test.cc @@ -63,10 +63,13 @@ void TestReset() { template void TestUnwrap() { zc::owned t(new T()); - //T* unwrap = t.get(); + T* unwrap = t.get(); zc::ref ref = t.get(); T* unwrap2 = ref; + + zc::member tm; + T* tp = &tm; } void TestMove() { -- 2.43.5