Boost logo

Boost Users :

Subject: [Boost-users] [Property_tree] using find to find a key
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2012-01-29 06:19:32


Hi:
I am declaring a property_tree, pulating this with an ini file.
I then need to find out whether a section (key) is present, so I'm doing:
boost::property_tree::ptree::assoc_iterator it =IniTree.find(key);
                if (it !=boost::property_tree::ptree::not_found)
using visual c++ 2010 I get an error c2678, telling me that no operand is able to use these two values.
Can someone please tell me what I'm doing wrong, as I can normally do this for std::vectors etc!
Cheers
Sean.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net