In trying to compile and run the Kevin Bacon example for graph in the
1.30.2 distribution of Boost, I was able to compile, but when I ran the
executable, I got:
kevin-bacon: /usr/local/boost-1.30.2/boost/token_iterator.hpp:75: void
boost::detail::tokenizer_policy::increment(Iterator&) [with Iterator =
boost::iterator_adaptor > >, boost::detail::tokenizer_policy, boost::char_delimiters_separator >, std::basic_string, const std::basic_string&, const std::basic_string*, std::forward_iterator_tag, ptrdiff_t>, Type = std::basic_string, TokenizerFunc = boost::char_delimiters_separator]: Assertion `b.base().valid_' failed.
Aborted
Investigating led me to comment out the asserts on lines 69 and 75 of
boost/token_iterator.hpp just to test. When I rebuilt without the
asserts, I was able to run my executable with no problem with seemingly
correct output.
What purpose do the asserts serve, and why would they be failing?
-tfo