12 May
2016
12 May
'16
11:41 p.m.
On 12-05-16 21:10, Igor R wrote:
The following code is a slightly modified Proto calc2 example. Instead of doubles I use variant
, and the expression is just _1 = _2. This code triggers assertion in variant/detail/forced_return.hpp, so it looks like some variant instance gets messed up. It happens when the value returned from proto::eval(*this, ctx) is being copied. It can be reproduced both with MSVC and gcc, with Boost 1.60. Is there any workaround for this issue?
I can only reproduce it with Clang. GCC 4.9+ is fine Are you using libc++?