On Monday, July 14, 2003, at 11:04 PM, David Abrahams wrote:


Matthias Troyer <[EMAIL PROTECTED]> writes:

I now get the following compile-time error on MacOS X using g++ v. 3.1:

/Users/troyer/src/boost/boost/iterator/iterator_adaptor.hpp:282:
sizeof'
applied to incomplete type `boost::STATIC_ASSERTION_FAILURE<false>'


Can anybody help?

What were you compiling? Reproducible case, please!

Sorry, Here is an example that shows the problem in a simple case:


#include <boost/graph/adjacency_list.hpp>
#include <iostream>

int main()
{
boost::adjacency_list<boost::vecS,boost::vecS,boost::undirectedS,
boost::no_property, boost::no_property, boost::no_property, boost::vecS> g;
std::cout << boost::source(*(boost::edges(g).first+4),g) << std::endl;
return 0;
}


The problem is adding an integer to an edge iterator of this graph. Is this a problem of the iterator adaptor library or of the BGL?

Matthias

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to