Boost Users :
Subject: Re: [Boost-users] is leaf() be defined at boost/filesystem/operations.hpp ?
From: Eric Lin (kingdavid1_at_[hidden])
Date: 2011-07-20 12:46:32
show out general annoucement of transition from v2 to v3 did not help
unless point out specific target that my question request
and I indeed is hard to find anything related to v3 and leaf in boost.org or google or cplusplus.com
need any expert's help again, Eric
> Date: Wed, 20 Jul 2011 15:27:35 +0200
> From: zao_at_[hidden]
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] is leaf() be defined at boost/filesystem/operations.hpp ?
> On Wed, Jul 20, 2011 at 06:12:14AM -0700, Eric Lin wrote:
> > Dear advanced boost/c/g++ programers:
> > I copied and try a simple (Reading a directory with boost) program , from page 383, Example 10-19, of book(C++ cookbook)
> > Example10-19.cpp:34:24: error: class boost::filesystem3::directory_entry has no member named leaf
> > I am using 1.46.1 of boost
> Note that the error message mentions "filesystem3", which indicate that
> you are currently using Boost.Filesystem v3.
> The book is probably written against the old Filesystem v2, which was
> the default version used up through Boost 1.45.0.
> You've got two solutions at hand:
> 1) Define the preprocessor definition shown in the documentation to get
> v2, but that will stop working when Boost stops shipping v2
> (according to the docs, this will be after 1.47).
> 2) Rewrite the code to use the slightly different interface of v3.
> Lars Viklund | zao_at_[hidden]
> Boost-users mailing list
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