Subject: [Boost-bugs] [Boost C++ Libraries] #4602: Problems with proto::N under MSVC 2010
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-27 20:50:28
#4602: Problems with proto::N under MSVC 2010
--------------------------------+-------------------------------------------
Reporter: ru.elric@⦠| Owner: eric_niebler
Type: Bugs | Status: new
Milestone: To Be Determined | Component: proto
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
--------------------------------+-------------------------------------------
I'm using boost 1.44 with MSVC 2010.
It seems that proto::N cannot be used as array size wildcard with types
other than char with this compiler.
For example, using the following grammar:
{{{
struct grammar:
proto::terminal<wchar_t[proto::N]>
{};
}}}
leads to the following compilation error:
{{{
traits.hpp(382): error C2148: total size of array must not exceed
0x7fffffff bytes
1> matches.hpp(409) : see reference to class template
instantiation 'boost::proto::terminal<T>' being compiled
1> with
1> [
1> T=wchar_t [2147483647]
1> ]
1> matches.hpp(1005) : see reference to class template
instantiation 'boost::proto::detail::matches_<Expr,Grammar>' being
compiled
...
}}}
Test source attached.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4602> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC