$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [Variant] Assertion fails at variant/detail/visitation_impl.hpp:207
From: Attila Rajmund Nohl (attila.r.nohl_at_[hidden])
Date: 2015-01-30 06:08:14
Hello!
I'm using boost-1.55 on Linux. When I run a specific testcase, I get
an abort at line 207 in the visitation_impl.hpp file. The comment says
that "should never be here at runtime". Unfortunately I don't really
understand under what circumstances could runtime end up here - could
someone explain how? The variant has a recursive element, i.e. looks
something like this:
struct Resp;
struct SR {
}
struct AR {
std::vector<Resp> resp;
}
typedef variant< SR, recursive_wrapper<AR> > RMType;
struct Resp {
RMType rm;
}