Closed mgmarino closed 8 years ago
In the c++ wamp router that I am working on we opted to not use boost::any as a variant type. Instead we simply use msgpack::object (msgpack-c) to represent parameters. The library provides a convenience type of msgpack::tuple
Wondering the state of this. Has this been ported into Autobahn?
I am closing this for now .. if @mgmarino doesn't see his issues/questions addressed, please feel free to reopen ..
I'm opening this issue more as a discussion thread covering the following topics:
If this have been discussed elsewhere, I apologize! (I couldn't find it. :-) )
I believe that many users of this package will be writing code to wrap c/c++ libraries and enable communication/RPC with web servers, python, etc. As such, I think it would make sense to add some utilities to help facilitate this. I am somewhat volunteering to help as well as asking for some input as to what others think is best.
What I have already done (all of the following is done in boost-based template headers):
boost::fusion
headers.boost::python
, where users can also register how types can be converted from and to python. In this case, it would support the conversion from and to anyvec and anymap (and the supported 'basic' types).I would be happy to hear comments and to show what I already have. I have been writing this for our own usage in-house, but I've been trying to make it general enough to be more useful.
Thanks.