Boost logo

Boost :

From: Tim Van Epps (tvanepps_at_[hidden])
Date: 2005-01-28 09:24:51


I'm trying to use boost::tokenizer with the sunpro compiler and
encountering an error in the boost interator.

Sunpro compiler: CC: Sun C++ 5.5 Patch 113817-10 2004/10/05
boost 1_32_0

program that demonstrates the error:
        #include <boost/tokenizer.hpp>

        using namespace boost;

        int
        main(int argc, char ** argv) {
          std::string ret;
          char_separator<char> sep("\r\n");
          tokenizer<char_separator<char> > tok(ret, sep);
          for(tokenizer<char_separator<char> >::iterator i =tok.begin();
              i != tok.end(); ++i) {}
        }

the output from CC -I$D/src/vendor/incl -o bug bug.C:
"/usr/local/dailyLibraryBuild/src/vendor/incl/boost/iterator/iterator_facade.hpp",
line 837: Error: Could not find a match for
boost::iterator_core_access::equal<boost::iterator_core_access::Facade1,
boost::iterator_core_access::Facade2>(const
boost::token_iterator<boost::char_separator<char,
std::char_traits<char>>, const char*, std::string>, const
boost::token_iterator<boost::char_separator<char,
std::char_traits<char>>, const char*, std::string>,
boost::is_convertible<boost::token_iterator<boost::char_separator<char,
std::char_traits<char>>, const char*, std::string>,
boost::token_iterator<boost::char_separator<char,
std::char_traits<char>>, const char*, std::string>>).
1 Error(s) detected.

I've seen variations on this issue discussed on the boost mailing lists,
but I'm not sure I've seen a definitive answer. Does anybody have one?

-- 
Tim Van Epps
Archelon
312.788.6328

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk