|
Boost : |
From: Shams (shams_at_[hidden])
Date: 2007-04-16 20:45:23
Hi,
Here is one that the author is working towards Boosting it...
http://channel.sourceforge.net/#boost
Maybe a few of you interested parties could get together to develop it
faster...
Thanks
Shams
-- "Hans Larsen" <hans_at_[hidden]> wrote in message news:7D55A7CC-F228-4BAA-A3F3-210D84D79901_at_poltras.com... > Is there a marshaling library in boost and is there an interest in > such a functionality? Is the serializing library any use to marshall > calls? > > I've not seen any mails concerning marshaling recently, though I > might have missed one. > > Thanks, > Hans > > I'm thinking something along the lines of the following. Although it > may not be possible, I think it is (maybe the function registry is > not necessary). > > int func( int i, int j ) > { > using namespace std; > cout << "i: " << i << " j:" << k << endl; > return i + j; > } > > int main() > { > using m = boost::marshall; > using std; > > int funcid = 1; > m::register_function( funcid, func ); // Using same principles as in > boost::function for type safety. > m::call x(funcid, 1, 2); > string str = x.serialize(); > m::call y( str ); > try { > cout << y() << endl; > } catch( m::invalid_function x ) { > cout << x.what() << endl; > } > return 0; > } > > // ------ > // Should output: > // i: 1 j: 2 > // 3 > _______________________________________________ > Unsubscribe & other changes: > http://lists.boost.org/mailman/listinfo.cgi/boost >
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk