|
Boost : |
From: Matthias Troyer (troyer_at_[hidden])
Date: 2003-07-14 16:49:25
On Monday, July 14, 2003, at 11:04 PM, David Abrahams wrote:
> Matthias Troyer <troyer_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk