[boost] Re: any_cast improvement

2003-01-17 Thread Unai Uribarri Rodríguez
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(x) Boost.dynamic_any has extract functi

[boost] Re: any_cast improvement

2003-01-17 Thread Alexander Nasonov
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(x) >> >> Boost.dynamic_any has extract functi

[boost] Re: any_cast improvement

2003-01-16 Thread Unai Uribarri Rodríguez
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(x) Boost.dynamic_any has extract functinos which work this way. But this patch adds that function

[boost] Re: any_cast improvement

2003-01-16 Thread Alexander Nasonov
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(x); > > because any_cast tries to instanciate a pointer to int&. The attached > patch solved this problem using boo