Boost logo

Boost Users :

Subject: [Boost-users] composite iterator_adaptor
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2010-08-06 08:37:04


Hello,

the snippet below doesn't compile due to a missing constructor. Changes
to const std::string doesn't compile too. Is this intentionally or
misuse it? How to fix it?

Here the error from from clang:

 /opt/clang/bin/clang++ -I
/home/olaf/Projects/programming/cpp/boost/trunk/ iterator_composite.cpp
-o iterator_composite
iterator_composite.cpp:70:36: error: no matching constructor for
initialization of 'client::default_input_iterator' (aka
      'boost::filter_iterator<detail::equal_to<typename
basic_iterator_type::value_type>, basic_iterator_type>')
    client::default_input_iterator first( rng.begin() );
                                   ^ ~~~~~~~~~~~

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