Boost logo

Boost Users :

Subject: Re: [Boost-users] [variant] 'which' out of range assertion
From: Daniel Bradburn (moagstar_at_[hidden])
Date: 2012-02-22 11:20:06

I agree, it would be much better if this was picked up at compile time -
took a while searching and head scratching before I figured out what the
problem was.

I found that it was not necessary to define these when building boost, but
I'm not 100% sure whether that is necessary, I think that depends on which
non-header only library use these macros, perhaps you could do a quick
search of the boost directory just to make sure.

2012/2/22 Igor R <boost.lists_at_[hidden]>

> >> You can get around this by increasing the maximum size a variant can
> handle,
> >> define the following symbols (or higher if you need):
> >>
> And one more question: if I define these macros in some TU of my
> project, in the way that affects some other boost headers I include --
> should I define them when building boost as well?
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at