Boost logo

Boost :

From: Unai Uribarri Rodríguez (unaiur_at_[hidden])
Date: 2003-01-17 13:17:51


Alexander Nasonov wrote:
> Unai Uribarri Rodríguez wrote:
>
>
>>Alexander Nasonov wrote:
>>
>>>Unai Uribarri Rodríguez wrote:
>>>
>>>
>>>>any_cast, as is implemented in boost 1.29, has one weakness; it doesn't
>>>>allow to compile this piece of code:
>>>>
>>>> any x=int(5);
>>>> ++any_cast<int&>(x)
>>>
>>>Boost.dynamic_any has extract functinos which work this way.
>>
>>But this patch adds that functionality without breaking the interface.
>
>
> For broken compilers it could break all because remove_reference might not
> work for them.
>

If you see the compiler status page, you can see that the any test and
the remove_reference works with the all compilers except Visual C++ 6 &
7 and SGI MIPSpro CC 7.3.1.2m. The any_test fails also with Sun Workshop
6U2.

Therefore, this patch doesn't affect the portability of any.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk