Boost logo

Boost Users :

Subject: Re: [Boost-users] boost any questions and praise
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2010-02-03 10:25:57


2010/2/3 Alan Tennant <alan2here_at_[hidden]>
>
> Does adobe::polly offer a way to call methods on the anys content without
> unwrapping it? Could this be done generically for any method (I know there
> would be type/method safety issues)?
>

Yes, you can do that with adobe poly and it's perfectly safe.

Take a look at the
example<http://stlab.adobe.com:8080/@rev1=head@//adobe_source_libraries/test/poly/poly_test.cpp>
which
adds method size() to poly without modifying poly's source code. You could
do the same to add operator<<.

Roman Perepelitsa.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net