-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested aggregate structures do not work #50
Comments
Don't be sorry! I appreciate the early review. I'll investigate this this weekend. |
Even worse, this also does not work: #include <boost/parser/parser.hpp>
#include <vector>
struct X {
char a;
int b;
};
struct SimplerY {
X x;
int c;
};
int main()
{
namespace bp = boost::parser;
auto parse_x = bp::char_ >> bp::int_;
auto parse_y = parse_x >> bp::int_;
SimplerY y;
auto b = bp::parse("d 3 4", parse_y, bp::ws, y);
} I have some work to do it seems. |
Ok, after thinking about this a bit, there's no bug with my "simplified" case above. When you write |
Correct. Boost.Spirit also rejects your simplified example. |
Sorry, one more. The following case where we have an indirectly nested aggregate doesn't compile:
The Boost.Spirit analogue compiles fine:
The text was updated successfully, but these errors were encountered: