Spirit X3 with on_success() calls on VS2015
Mikael Asplund <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I seem to have run into a bug in spirit x3 (or more likely in VS2015, but there is no workaround in spirit).
I have a small unit test like this:
struct XXX : x3::annotate_on_success {};
...
auto a = x3::detail::has_on_success<XXX, parser::iterator_type, x3::unused_type, ast::Identifier&>();
typedef decltype(XXX().on_success(std::declval<iterator_type&>(), std::declval<iterator_type>(), std::declval<ast::Identifier&>(), x3::unused)) type;
bool b = a;
ensure(b);
...
This builds fine on both Linux (clang and g++) and Windows (VS2015 Update 1-2 CTP), but the test (ensure()) fails on Windows only.
That the typedef builds fine would indicate to me that the method is there and should be no problem calling (and again, this builds fine in VS2015, too).
However, has_on_success somehow fails to detect this in VS2015, but it works fine on Linux.
This results in my on_success() not being called on Windows. I'm looking into this, but wanted to ask if someone have seen this before and is aware of this problem and why it occurs? Maybe someone with more knowledge is this area that can figure it out quickly?
Regards,
Mikael
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Spirit-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spirit-general