diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-25 23:55:11 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-25 23:55:11 +0000 |
commit | 0aa5d886a91d534c4b42fe6cda9bde019624f061 (patch) | |
tree | 6ecdfd411e832bd7ab82f7dc1e3dc7d5b41be3e0 /gcc/doc | |
parent | b82257573b31afc9c22e1a1a4471755e34b5b01f (diff) | |
download | gcc-0aa5d886a91d534c4b42fe6cda9bde019624f061.tar.gz |
gcc/cp
2007-04-25 Paolo Carlini <pcarlini@suse.de>
* semantics.c (classtype_has_nothrow_copy_or_assign_p): Adjust
per N2255; rename as classtype_has_nothrow_assign_or_copy_p.
(trait_expr_value): Adjust.
gcc/testsuite/
2007-04-25 Paolo Carlini <pcarlini@suse.de>
* g++.dg/ext/has_nothrow_assign.C: Adjust per N2255.
gcc/
2007-04-25 Paolo Carlini <pcarlini@suse.de>
* doc/extend.texi ([Type Traits]): Adjust per N2255.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124170 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/extend.texi | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index ce63202ebb0..45a632493de 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -11246,13 +11246,12 @@ pair of types). @table @code @item __has_nothrow_assign (type) -If @code{__has_trivial_assign (type)} is true then the trait is true, else if -@code{type} is a cv class or union type with copy assignment operators that -are known not to throw an exception then the trait is true, else it is false. -If @code{type} is const qualified, any copy assignment operator must -be both known not to throw an exception, and const qualified, for the -trait to be true. Requires: @code{type} shall be a complete type, an -array type of unknown bound, or is a @code{void} type. +If @code{type} is const qualified or is a reference type then the trait is +false. Otherwise if @code{__has_trivial_assign (type)} is true then the trait +is true, else if @code{type} is a cv class or union type with copy assignment +operators that are known not to throw an exception then the trait is true, +else it is false. Requires: @code{type} shall be a complete type, an array +type of unknown bound, or is a @code{void} type. @item __has_nothrow_copy (type) If @code{__has_trivial_copy (type)} is true then the trait is true, else if |