Subject: Re: [boost] [variant] Why boost::get<Base>(derived) not supported?
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2013-12-07 12:44:27
2013/12/7 TONGARI J <tongari95_at_[hidden]>
> Aside: Do we have something like unconditional_get that doesn't perform the
> runtime check?
> Sometimes the type-safety can be ensured by my program logic.
There's nothing like that. But I really wish to believe that compilers are
clever enough and will optimize away the `switch` in such cases.
-- Best regards, Antony Polukhin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk