|
Boost-Commit : |
From: dgregor_at_[hidden]
Date: 2008-05-30 09:08:41
Author: dgregor
Date: 2008-05-30 09:08:40 EDT (Fri, 30 May 2008)
New Revision: 45946
URL: http://svn.boost.org/trac/boost/changeset/45946
Log:
New concepts issue 36
Added:
sandbox/committee/concepts/issues/issues/issue36.xml (contents, props changed)
Text files modified:
sandbox/committee/concepts/issues/issues/issue34.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: sandbox/committee/concepts/issues/issues/issue34.xml
==============================================================================
--- sandbox/committee/concepts/issues/issues/issue34.xml (original)
+++ sandbox/committee/concepts/issues/issues/issue34.xml 2008-05-30 09:08:40 EDT (Fri, 30 May 2008)
@@ -70,7 +70,8 @@
requires ConstructibleAsElement<Alloc, T, const T&> <ins>&& CopyAssignable<T></ins>
deque<T,Allocator>& operator=(const deque<T,Allocator>& x);
- deque<T,Allocator>& operator=(const deque<T,Allocator>&& x);
+ <ins>requires ConstructibleAsElement<Alloc, T, T&&></ins>
+ deque<T,Allocator>& operator=(const deque<T,Allocator>&& x);
template <InputIterator Iter>
requires ConstructibleAsElement<Alloc, T, Iter::reference> <ins>&& HasCopyAssign<T, Iter::reference></ins>
void assign(Iter first, Iter last);
Added: sandbox/committee/concepts/issues/issues/issue36.xml
==============================================================================
--- (empty file)
+++ sandbox/committee/concepts/issues/issues/issue36.xml 2008-05-30 09:08:40 EDT (Fri, 30 May 2008)
@@ -0,0 +1,29 @@
+<?xml version='1.0' encoding='iso-8859-1' standalone='no'?>
+<!DOCTYPE issue SYSTEM "lwg-issue.dtd" [
+ <!ENTITY nbsp " ">
+] >
+
+<issue num="36" status="Open">
+<title><code>HasCopyAssign</code> should be named <code>HasAssign</code></title>
+<section><sref ref="[concept.operator]"/></section>
+<submitter>Howard Hinnant</submitter>
+<date>29 May 2008</date>
+
+<discussion>
+ <p>In:</p>
+<pre>
+template <InputIterator Iter>
+ requires ConstructibleAsElement<Alloc, T, Iter::reference> && HasCopyAssign<T, Iter::reference>
+ void assign(Iter first, Iter last);
+</pre>
+
+<p>Is "HasCopyAssign" a good name for this concept? I'm thinking more
+ along the lines of "HasAssign". Rationale: <code>Iter</code> can be
+ a <code>move_iterator<T></code>. It's reference type
+ is <code>T&&</code>. I strongly suspect that
+ the <code>HasCopyAssign</code> concept will work just fine
+ for <code>move_iterator<T></code>. I'm just thinking that the
+ name may be misleading because the code may end up doing a move
+ assign.</p>
+</discussion>
+</issue>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk