Boost logo

Boost :

From: Vincent Finn (vincent_finn_at_[hidden])
Date: 2002-09-19 10:01:44


Hi,

has anyone hit this problem ?

filesystem\fstream does not compile for me
I am running VC6 SP4

and taking the example from the help docs
the line

        fs::ofstream file( "foobar/cheeze" );

gives the following error
c:\algarchitecture\boost\filesystem\boost\filesystem\fstream.hpp(68) :
error C2504: 'basic_ofstream<char,struct std::char_traits<char> >' :
base class undefined
         c:\algarchitecture\boost\filesystem\test\test.cpp(47) : see
reference to class template instantiation
'boost::filesystem::basic_ofstream<char,struct std::char_traits<char> >'
being compiled

if I change 'fs' to 'std' it work perfectly

If I try the fstream_test.cpp I get

c:\algarchitecture\boost\filesystem\boost\filesystem\fstream.hpp(34) :
error C2352: 'std::basic_filebuf<char,struct std::char_traits<char>
>::open' : illegal call of non-static member function
         c:\program files\microsoft visual
studio\vc98\include\fstream(82) : see declaration of 'open'
 
c:\algarchitecture\boost\filesystem\boost\filesystem\fstream.hpp(32) :
while compiling class-template member function 'class
std::basic_filebuf<char,struct std::char_traits<char> > *__thiscall
boost::filesystem::basic_filebuf<char,struct std

I can't see any mention of it inprevious mails
am I missing something obvious ??

        Thanks, Vin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk