Boost logo

Boost Users :

Subject: Re: [Boost-users] write_xml()
From: Igor R (boost.lists_at_[hidden])
Date: 2011-04-06 13:25:18


> I use write_xml() function and boost-1.46.0-4 on arch linux.
>
> void create()
> {
>    ...
>    out_file.save("/machines/"+name);
<...>
>
> Write_xml() create the /machines/+name
> But it must create a path /home/iwan/machines/+name
>
> Why?
> It is bug?

/machines/name is absolute path, isn't it?
What if you call fopen("/machines/name", "w")? I guess it will create
the file in /machines as well.


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