I’m working with a c++ project that has a lot of COM functions. The majority of the inputs and outputs are VARIANTs. Is there an easy way to serialize/deserialize these into long, string, etc using Boost?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Boost has absolutely nothing with regards to Microsoft’s COM technology. The closest thing to COM’s variant in Boost would be
boost::any. You can write COM’svariant_ttoboost::anyconverter, then you can serialize, cast etc.