|
Boost-Commit : |
From: dgregor_at_[hidden]
Date: 2008-03-25 10:02:53
Author: dgregor
Date: 2008-03-25 10:02:53 EDT (Tue, 25 Mar 2008)
New Revision: 43853
URL: http://svn.boost.org/trac/boost/changeset/43853
Log:
Add issue for PolymorphicClass concept
Added:
sandbox/committee/concepts/issues/issues/issue27.xml (contents, props changed)
Added: sandbox/committee/concepts/issues/issues/issue27.xml
==============================================================================
--- (empty file)
+++ sandbox/committee/concepts/issues/issues/issue27.xml 2008-03-25 10:02:53 EDT (Tue, 25 Mar 2008)
@@ -0,0 +1,37 @@
+<?xml version='1.0' encoding='iso-8859-1' standalone='no'?>
+<!DOCTYPE issue SYSTEM "lwg-issue.dtd" [
+ <!ENTITY nbsp " ">
+] >
+
+<issue num="27" status="New">
+<title>Missing core concept for polymorphic types</title>
+<section><sref ref="[concept.support]"/></section>
+<submitter>Alisdair Meredith</submitter>
+<date>25 Mar 2008</date>
+
+<discussion>
+ <p>There is no core concept for Polymorphic types in n2572. This
+ seems to be a useful concept where we
+ expect <code>dynamic_cast</code> to return something useful.</p>
+</discussion>
+
+<resolution>
+ <p>Add to the synopsis of the header <concepts>:</p>
+ <pre>
+concept ClassType<typename T> <i>see below</i>;
+concept Class<typename T> <i>see below</i>;
+<ins>concept PolymorphicClass<typename T> <i>see below</i>;</ins>
+concept Union<typename T> <i>see below</i>;
+ </pre>
+
+ <p>Add the following to [concept.support], after the description of
+ concept <code>Class</code>:</p>
+ <pre>
+<ins>concept PolymorphicClass<typename T> : Class<T> { }</ins>
+ </pre>
+ <ol start="16">
+ <li><ins><i>Note</i>: describes polymorphic types ([class.virtual]).</ins></li>
+ <li><ins><i>Requires</i>: for every type <code>T</code> that is a polymorphic class, a concept map <code>PolymorphicClass<T></code> shall be implicitly defined in namespace <code>std</code>.</ins></li>
+ </ol>
+</resolution>
+</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