Boost C++ Libraries: Ticket #12329: typedef argument_type missing on optional<T&> https://svn.boost.org/trac10/ticket/12329 <p> Hi, </p> <p> Any reason why typedef argument_type has been removed in the new specialization of optional&lt;T&amp;&gt;? </p> <p> To have the same typedefs between optional&lt;T&gt; and optional&lt;T&amp;&gt;, it would be nice to add the following in the specialization of optional&lt;T&amp;&gt;:<br /> typedef T&amp; argument_type; </p> <p> This allows also to keep compatibility on public interface of the old optional implementation, except of course if there is a good reason to have removing this typedef... </p> <p> Regards,<br /> Daniel. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12329 Trac 1.4.3 akrzemi1 Mon, 19 Sep 2016 07:46:45 GMT <link>https://svn.boost.org/trac10/ticket/12329#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12329#comment:1</guid> <description> <p> there is a typedef value_type that already does this. Can you use value_type instead? </p> </description> <category>Ticket</category> </item> <item> <author>Daniel Laügt <daniel.laugt@…></author> <pubDate>Mon, 19 Sep 2016 17:31:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12329#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12329#comment:2</guid> <description> <p> reference_type, reference_const_type, rval_reference_type typedefs also already do this. This was just for using a unique typedef argument_type to have: </p> <ul><li>T const&amp; for optional&lt;T&gt; </li><li>T&amp; for optional&lt;T&amp;&gt; </li></ul><p> But now, I see that I can use the typedef reference_const_type instead for this purpose. For optional&lt;T&gt;, it seems that reference_const_type and argument_type are redundant. </p> <p> Anyway, this ticket was just a nice to have... It can be closed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>akrzemi1</dc:creator> <pubDate>Thu, 27 Oct 2016 21:56:45 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12329#comment:3 https://svn.boost.org/trac10/ticket/12329#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">wontfix</span> </li> </ul> Ticket