Boost logo

Boost Users :

Subject: [Boost-users] filesystem and range::copy
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2010-06-04 13:55:43


Hi,

does the boost filesystem support boost.range (or vice versa?) I've got
a compile error by

    fs::ifstream in( ... );
    std::string storage;
    boost::copy( in, std::back_inserter( storage ) );

using trunk

boost/mpl/eval_if.hpp: In instantiation of ‘boost::mpl::eval_if_c<true,
boost::range_const_iterator<boost::filesystem::basic_ifstream<char,
std::char_traits<char> > >, boost::range_mutable_iterator<const
boost::filesystem::basic_ifstream<char, std::char_traits<char> > > >’:

boost/range/iterator.hpp:63: instantiated from
‘boost::range_iterator<const boost::filesystem::basic_ifstream<char,
std::char_traits<char> > >’

boost/range/concepts.hpp:221: instantiated from
‘boost::SinglePassRangeConcept<boost::filesystem::basic_ifstream<char,
std::char_traits<char> > >’

boost/concept/detail/has_constraints.hpp:42: instantiated from ‘const
bool
boost::concepts::not_satisfied<boost::SinglePassRangeConcept<boost::filesystem::basic_ifstream<char,
std::char_traits<char> > > >::value’

boost/concept/detail/has_constraints.hpp:45: instantiated from
‘boost::concepts::not_satisfied<boost::SinglePassRangeConcept<boost::filesystem::basic_ifstream<char,
std::char_traits<char> > > >’

Thanks,
Olaf


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