$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] How to use noncopyable?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-22 01:28:49
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