Boost C++ Libraries: Ticket #1724: [ref] DefaultConstructible https://svn.boost.org/trac10/ticket/1724 <p> I request boost::reference_wrapper&lt;T&gt; be <a class="missing wiki">DefaultConstructible</a> for conforming <a class="missing wiki">ForwardIterator</a> holding a <a class="missing wiki">FunctionObject</a> which captures arguments by-reference using boost::reference_wrapper&lt;T&gt;. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1724 Trac 1.4.3 Antony Polukhin Thu, 26 Sep 2013 07:37:38 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1724#comment:1 https://svn.boost.org/trac10/ticket/1724#comment:1 <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">invalid</span> </li> </ul> <p> If you are talking about the <code>boost::recursive_wrapper&lt;T&gt;</code>, which is part of the Boost.Variant library, then it is already default constructible. </p> <p> If you are talking about <code>boost::reference_wrapper&lt;T&gt;</code> then this is not possible. <code>boost::reference_wrapper&lt;T&gt;</code> must behave exactly like a reference and you can not default construct a reference in C++. </p> Ticket Antony Polukhin Thu, 26 Sep 2013 07:37:51 GMT cc set https://svn.boost.org/trac10/ticket/1724#comment:2 https://svn.boost.org/trac10/ticket/1724#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">antoshkka@…</span> added </li> </ul> Ticket