Boost logo

Boost Users :

From: Alan Robert Clark (a.clark_at_[hidden])
Date: 2007-05-17 04:33:48


Morning all

I am trying to do:

<snip>
#include "boost/filesystem/fstream.hpp"
namespace fs=boost::filesystem;
int produce_lists(fs::path homedir)
{
   fs::path del_fn = homedir / ".wkhm/deletions";
   fs::path cr_fn = homedir / ".wkhm/creations";
   fs::ofstream deletionsfile (del_fn);
   fs::ofstream creationsfile (cr_fn);
   // ensure that the deletions are always transferred
   creationsfile << homedir << ".wkhm/deletions" << std::endl;
}

and the << operator does not try to convert fs::path to std:: string.
Best way of handling this?

Any suggestions welcomed
Alan

-- 
Alan Robert Clark, Pr Eng     Computational Electromagnetics
Associate Professor                 Wits University
School of Electrical and Information Engineering
Wits; Gauteng              ``Bugs are later known as features''
2050 South Africa                 Ps 111:10; Ps 37/150
Fax (+27 11)403-1929             a.clark_at_[hidden]
Tel (+27 11)717-7223(24hr)  <http://YingTongDiddleiPo.ee.wits.ac.za/>
   GPG Public Key at <http://YingTongDiddleiPo.ee.wits.ac.za/arc.gpg>
           **Linux ---the choice of a GNU generation.**

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