Boost C++ Libraries: Ticket #4706: ValueType requirements seem wrong https://svn.boost.org/trac10/ticket/4706 <p> According to the doc: </p> <blockquote class="citation"> <p> The specific requirements on value types to be used in an any are: </p> <p> A ValueType is CopyConstructible [20.1.3]. </p> <p> A ValueType is optionally Assignable [23.1]. The strong exception-safety guarantee is required for all forms of assignment. </p> <p> The destructor for a ValueType upholds the no-throw exception-safety guarantee. </p> </blockquote> <p> The doc seems to be saying that Assignable is not strictly required, but if you supply an assignment operator, it must offer the strong guarantee. But nothing in any depends on assignability of its ValueType parameter, much less that it provides the strong guarantee. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4706 Trac 1.4.3 Dave Abrahams Sun, 03 Oct 2010 20:21:13 GMT description changed https://svn.boost.org/trac10/ticket/4706#comment:1 https://svn.boost.org/trac10/ticket/4706#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/4706?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket Steven Watanabe Sat, 13 Oct 2012 19:48:23 GMT <link>https://svn.boost.org/trac10/ticket/4706#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4706#comment:2</guid> <description> <p> I agree. This is a spurious requirement. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Sat, 13 Oct 2012 20:04:58 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4706#comment:3 https://svn.boost.org/trac10/ticket/4706#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80980" title="Remove spurious requirement. Fixes #4706.">[80980]</a>) Remove spurious requirement. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4706" title="#4706: Bugs: ValueType requirements seem wrong (closed: fixed)">#4706</a>. </p> Ticket