Boost logo

Boost Users :

Subject: [Boost-users] write_xml()
From: Иван (martynenko_at_[hidden])
Date: 2011-04-06 10:43:32


 Hi,
 I use write_xml() function and boost-1.46.0-4 on arch linux.

 void create()
 {
     ...
     out_file.save("/machines/"+name);
     ....

 void serializer::save (const std::string &filename)
 {
         boost::property_tree::xml_parser::xml_writer_settings<char>
 gramma(' ',8);
         write_xml(filename, pt, std::locale(), gramma);
 }

 This function don't chroot.

 readlink -f /proc/5682/cwd
 /home/iwan

 Write_xml() create the /machines/+name
 But it must create a path /home/iwan/machines/+name

 Why?
 It is bug?

 I am sorry for my bad english.


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