--- In Boost-Users@y..., "JULES D'ENTREMONT" <jules.dentremont@a...> wrote:
Hi,
I'm trying to use boost::tokenizer to tokenize colon-separated strings of the form "path1:path2:path3...".
I wrote the following simple test program: #include <string> #include "boost/tokenizer.hpp"
void func() { std::string s("abc:def:ghi");
boost::char_delimiters_separator<char> tokenizerFunc (false, "", ":"); boost::tokenizer<boost::char_delimiters_separator<char> > tokenizer(s, tokenizerFunc); }
However, this fails to compile with the Sun Forte 6U2 compiler. It spews out the following error messages:
"/nsm/rollsbuild/thirdparty/boost/boost_1_25_0/boost/detail/ob_compr essed_pair.hpp", line 416: Warning (Anachronism): Type names qualified by template parameters require "typename".
Ignore those warnings
line 922: Error: Invalid template parameter default.
change const Value to Value const;
"/nsm/rollsbuild/thirdparty/boost/boost_1_25_0/boost/iterator_adapto rs.hpp", line 925: Error: Invalid template parameter default.
change const Value to Value const;
"/nsm/rollsbuild/thirdparty/boost/boost_1_25_0/boost/iterator_adapto rs.hpp",
"/nsm/rollsbuild/thirdparty/boost/boost_1_25_0/boost/iterator_adapto rs.hpp", line 1133: Error: value is not a member of
boost::is_convertible<boost::detail::reduce_to_base_class<std::forward _iterator_tag,
boost::detail::iterator_traits<boost::detail::Iterator>::iterator_cate gory>::type*,
std::bidirectional_iterator_tag*>. "/nsm/rollsbuild/thirdparty/boost/boost_1_25_0/boost/token_iterator. hpp",
I do not have such code. [SNIP] Also ifdef BOOST_STATIC_ASSERTs on is_input_or_output_iter and forward_iter_with_real_reference (~lines 616-630). Also check that partial specialization is turned on.
*** Error code 5
Am I using the class incorrectly, or is this a genuine problem?
Jules d'Entremont
-- Jules d'Entremont jules.dentremont@a... Alcatel Canada http://batai.ca.newbridge.com/~julesd 600 March Road 613-784-6633 Kanata ON, K2K 2E6
Let me know how it looks now. Gennadiy.