Boost C++ Libraries: Ticket #3519: It should be possible to use consts as external placeholder variables. https://svn.boost.org/trac10/ticket/3519 <p> The right-and-side of placeholder let-expressions are not declared as const, so common use-cases like: </p> <p> </p> <pre class="wiki">placeholder&lt;int&gt; _i; smatch what; what.let(_i = 1); </pre><p> or: </p> <p> </p> <pre class="wiki">placeholder&lt;MyClass *&gt; _p; smatch what; what.let(_p = this); </pre><p> fail to compile. It would be nice to have some way to specify a placeholder for non-mutable data. Perhaps: </p> <pre class="wiki">placeholder&lt;int const&gt; _i; </pre><p> (suggested by Eric Niebler) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3519 Trac 1.4.3 Eric Niebler Wed, 06 Oct 2010 18:18:53 GMT status changed https://svn.boost.org/trac10/ticket/3519#comment:1 https://svn.boost.org/trac10/ticket/3519#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket