composite iterator_adaptor

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

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?
int main() { std::string rng; client::basic_input_iterator<char>::basic_iterator_type lower_first( rng.begin() ); client::basic_input_iterator<char>::type first( lower_first ); ... how to write it as convenient single liner? Thanks Olaf
participants (1)
-
Olaf Peter