|
Boost : |
From: Brian Braatz (brianb_at_[hidden])
Date: 2005-03-02 17:55:50
Just for giggles, I pointed my unit test code to the boost I got from
CVS. Interestingly enough, it compiled with the #include
<boost/algorithm/string.hpp>
(but it complained about the unit test code- I am guessing there is a
broken form in cvs? Or maybe I don't have something setup- when I
commented out my test suite definitions- I WAS able to compile the file
though)
> -----Original Message-----
> From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]]
> On Behalf Of Brian Braatz
> Sent: Wednesday, March 02, 2005 2:03 PM
> To: boost_at_[hidden]
> Subject: [boost] Iostreams Compile Issue with
boost/algorithm/string.hpp
> was[RE: Compile problem using IoStreams from CVS inside boostv1.32
(VC71)]
>
> I narrowed this down a bit more-
>
> In my code which uses filtered_stream if I have the following headers:
>
> #include <boost/iostreams/concepts.hpp>
> #include <boost/iostreams/operations.hpp>
> #include <boost/iostreams/filtering_stream.hpp>
> #include <boost/iostreams/device/file.hpp>
> // #include <boost/algorithm/string.hpp>
>
> It compiles- but when I uncomment the #include
> <boost/algorithm/string.hpp> I get the error below
>
>
> > -----Original Message-----
> > From: Brian Braatz
> > Sent: Wednesday, March 02, 2005 1:34 PM
> > To: 'boost_at_[hidden]'
> > Subject: Compile problem using IoStreams from CVS inside boost v1.32
> > (VC71)
> >
> > I am using VC7.1 (and will also be using VC70 for this code)
> >
> > What I did-
> >
> > Executed the following from a cmd prompt:
> > cvs -d:pserver:anonymous_at_[hidden]:/cvsroot/boost login
> > cvs -z3 -d:pserver:anonymous_at_[hidden]:/cvsroot/boost
> checkout
> > boost
> > cvs -d:pserver:anonymous_at_[hidden]:/cvsroot/boost logout
> >
> > went into boost\iostreams and boost\libs\iostreams- copied both into
> temp
> > area-
> >
> > Deleted the CVS folders
> >
> > Copied the files into the boost 1.32 dir in my company's internal
CVS
> > server (we have the boost files under revision control to control
> which
> > version of which file we are using to build)
> >
> > Initially I had to change the files to from namespace io to
iostreams.
> Got
> > through those compile errors. And Now I have this one:
> >
> >
> > boost\algorithm\string\iterator_range.hpp(288) : error C2874: using-
> > declaration causes a multiple declaration of
> > 'boost::algorithm::iterator_range'
> >
> > \boost\algorithm\string\iterator_range.hpp(204) : see declaration of
> > 'boost::algorithm::iterator_range'
> >
> > I am digging into this but thought I would throw this out to see if
> any
> > one is aware of the issue-
> >
> > These errors point to the end of iterator_range.hpp (pointing at the
> using
> > clause)
> >
> > Here is a snippet from that file:
> >
> > template< typename SeqT, typename IteratorT, typename FuncT
>
> > inline SeqT transform_iterator_range( const
> > iterator_range<IteratorT>& Range, FuncT Func )
> > {
> > SeqT Seq;
> > std::transform( Range.begin(), Range.end(),
> > std::back_inserter(Seq), Func );
> > return Seq;
> > }
> >
> > } // namespace algorithm
> >
> > // pull names to the namespace boost
> > using algorithm::iterator_range;
> > using algorithm::make_iterator_range;
> > using algorithm::copy_iterator_range;
> > using algorithm::transform_iterator_range;
> >
> > } // namespace boost
> >
> >
> >
> >
> >
> >
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk