Boost C++ Libraries: Ticket #4602: Problems with proto::N under MSVC 2010 https://svn.boost.org/trac10/ticket/4602 <p> I'm using boost 1.44 with MSVC 2010. </p> <p> It seems that proto::N cannot be used as array size wildcard with types other than char with this compiler. </p> <p> For example, using the following grammar: </p> <pre class="wiki">struct grammar: proto::terminal&lt;wchar_t[proto::N]&gt; {}; </pre><p> leads to the following compilation error: </p> <pre class="wiki">traits.hpp(382): error C2148: total size of array must not exceed 0x7fffffff bytes 1&gt; matches.hpp(409) : see reference to class template instantiation 'boost::proto::terminal&lt;T&gt;' being compiled 1&gt; with 1&gt; [ 1&gt; T=wchar_t [2147483647] 1&gt; ] 1&gt; matches.hpp(1005) : see reference to class template instantiation 'boost::proto::detail::matches_&lt;Expr,Grammar&gt;' being compiled ... </pre><p> Test source attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4602 Trac 1.4.3 ru.elric@… Fri, 27 Aug 2010 20:50:54 GMT attachment set https://svn.boost.org/trac10/ticket/4602 https://svn.boost.org/trac10/ticket/4602 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> Ticket Eric Niebler Fri, 27 Aug 2010 21:10:33 GMT status changed https://svn.boost.org/trac10/ticket/4602#comment:1 https://svn.boost.org/trac10/ticket/4602#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Eric Niebler Wed, 06 Oct 2010 22:13:32 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4602#comment:2 https://svn.boost.org/trac10/ticket/4602#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</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/65793" title="knock down value of proto::N, fixed #4602">[65793]</a>) knock down value of proto::N, fixed <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4602" title="#4602: Bugs: Problems with proto::N under MSVC 2010 (closed: fixed)">#4602</a> </p> Ticket Eric Niebler Thu, 07 Oct 2010 00:57:53 GMT <link>https://svn.boost.org/trac10/ticket/4602#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4602#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/65798" title="Merged revisions 64371,64661,65793,65796-65797 via svnmerge from ...">[65798]</a>) Merged revisions 64371,64661,65793,65796-65797 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/64371" title="make proto work on msvc with /clr option">r64371</a> | eric_niebler | 2010-07-26 13:04:15 -0700 (Mon, 26 Jul 2010) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> make proto work on msvc with /clr option </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/64661" title="fix proto::matches bug with lambda_matches, array types and the wildcard">r64661</a> | eric_niebler | 2010-08-07 07:44:27 -0700 (Sat, 07 Aug 2010) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> fix proto::matches bug with lambda_matches, array types and the wildcard </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/65793" title="knock down value of proto::N, fixed #4602">r65793</a> | eric_niebler | 2010-10-06 15:13:27 -0700 (Wed, 06 Oct 2010) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> knock down value of proto::N, fixed <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4602" title="#4602: Bugs: Problems with proto::N under MSVC 2010 (closed: fixed)">#4602</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/65796" title="vc9 needs workaround, too">r65796</a> | eric_niebler | 2010-10-06 16:24:23 -0700 (Wed, 06 Oct 2010) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> vc9 needs workaround, too </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/65797" title="one more time">r65797</a> | eric_niebler | 2010-10-06 16:39:36 -0700 (Wed, 06 Oct 2010) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> one more time </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> </channel> </rss>