22 Feb
2009
22 Feb
'09
6:28 a.m.
AMDG Yang Zhang wrote:
Hi, I can't figure out how to properly use noncopyable. I'm always getting things like "has a non-virtual destructor" warnings.
Do you have a simple test case?
In fact, compiling noncopyable_test.cpp gives me:
<snip error message>
Any hints? Thanks in advance.
noncopyable_test.cpp isn't supposed to compile. Did you read the comment? // This program demonstrates compiler errors resulting from trying to copy // construct or copy assign a class object derived from class noncopyable. In Christ, Steven Watanabe