I am trying to use vector and boost property tree get() method but i am getting compile errors as follows. could you please help me in resolving these errors.
I am trying to get an std::vector value using ptree (boost property tree) by typecasting as follows.
const std::vector Result = pti.get>("XmlMsg.MsgDevice.MsgCommand.resultElement");
But I am getting the following errors: Please let me know how to resolve them.
mdi_boost_1_46_1oostproperty_treestream_translator.hpp(36) : error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'stlpd_std::vector<_Tp>' (or there is no acceptable conversion)
z:MDI_protocolmdimdi_boost_1_46_1oostproperty_treestream_translator.hpp(35) : while compiling class-template member function 'void boost_1_46_1::property_tree::customize_stream::extract(stlpd_std::basic_istream<_CharT,_Traits> &,E &)'
_boost_1_46_1oostproperty_treestream_translator.hpp(190) : see reference to class template instantiation 'boost_1_46_1::property_tree::customize_stream' being compiled
0 · ·