
I get an error that points me to this page http://stlab.adobe.com/wiki/index.php/Troubleshooting Probably because I'm using VC++9 not 8. Just to clarify I meant this. std::string s1 = "1234"; std::cout<<s1.length(); // couts 4 adobe::polly p1; p1 = s1; std::cout<<p1.length(); // not necessarily this exact syntax. couts 4 std::string s2; s2 = polly_cast<std::string>(p1); std::cout<<s2; So it's not going to be safe as in "type safe" but it may well be perfectly safe. On 3 February 2010 15:25, Roman Perepelitsa <roman.perepelitsa@gmail.com>wrote:
2010/2/3 Alan Tennant <alan2here@gmail.com>
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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users