Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Class invariants and implicit move constructors (C++0x)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Howard Hinnant  
View profile  
 More options Aug 15 2010, 10:49 am
Newsgroups: comp.lang.c++
From: Howard Hinnant <howard.hinn...@gmail.com>
Date: Sun, 15 Aug 2010 07:49:43 -0700 (PDT)
Local: Sun, Aug 15 2010 10:49 am
Subject: Re: Class invariants and implicit move constructors (C++0x)
On Aug 15, 12:07 am, Scott Meyers <NeverR...@aristeia.com> wrote:

> Consider a class with two containers, where the sum of the sizes of the
> containers is cached.  The class invariant is that as long as the cache is
> claimed to be up to date, the sum of the sizes of the containers is accurately
> cached:

<snip>

> The above scenario suggests that compiler-generated move operations may be
> unsafe even when the corresponding compiler-generated copy operations are safe.
>   Is this a valid analysis?

I believe so.

I don't have much to add that others haven't already said, except to
add a reference link for those who would like to dive deeper into how
we got here:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3053.html

-Howard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.