|
Boost : |
From: Artur Wisz (gagatech_at_[hidden])
Date: 2001-04-28 02:59:25
I got it. Here is a small complete program that fails to compile.
If the 2 marked lines are commented out it compiles. So it looks like
something with
properties.
#include <iostream>
#include <boost/config.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/property_map.hpp>
typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS,
boost::no_property,
boost::property<boost::edge_name_t, int, boost::no_property> >
Graph1;
void test()
{
using namespace boost;
typedef std::pair<int, int> E;
Graph1 g(5);
const int num_edges = 10;
E edge_array[num_edges] = { E(0,1), E(0,4), E(1,2), E(2,1),
E(2,4), E(2,3), E(3,2), E(3,4),
E(4,1), E(4,3) };
int edge_name_array[num_edges] = { 'a', 'b', 'd', 'd',
'g', 'e', 'e', 'f',
'c', 'f' };
for (int i = 0; i < num_edges; ++i)
{
Graph1::edge_descriptor e;
bool ok;
tie(e, ok) = add_edge(edge_array[i].first, edge_array[i].second, g);
if( ok)
// <---------
boost::put(boost::get(edge_name, g), e, edge_name_array[i]);
// <---------
}
}
int main(int, char **)
{
test();
return 0;
}
----- Original Message -----
From: "Jeremy Siek" <jsiek_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, April 27, 2001 5:36 PM
Subject: Re: [boost] Graphs: VC internal compiler error
> Hi Art,
>
> Hopefully there's a workaround... can you send a small example that
> causes this error?
>
> On Fri, 27 Apr 2001, Artur Wisz wrote:
>
> gagate> Hello,
> gagate> I wrote some code using boost 1.18.1 version graph library and
managed to
> gagate> make it work with VC++. Now I wanted to switch to boost 1.21.2 and
I get
> gagate> internal compiler errors, like below. I removed /Gm option as
advised but
> gagate> with no success.
> gagate> Is there some workaround for this ?
> gagate> Thanks,
> gagate>
> gagate> Art
> gagate>
> gagate> e:\c++lib\boost\iterator_adaptors.hpp(655) : fatal error C1001:
INTERNAL
> gagate> COMPILER ERROR
> gagate> (compiler file 'msc1.cpp', line 1786)
> gagate> Please choose the Technical Support command on the Visual
C++
> gagate> Help menu, or open the Technical Support help file for
more
> gagate> information
> gagate> e:\c++lib\boost\type_traits\composite_traits.hpp(210) :
see
> gagate> reference to class template instantiation
'boost::iterator_adaptor<class
> gagate> boost::detail::sep_<unsigned int,struct boost::property<enum
> gagate> boost::edge_name_t,class std::basic_string<char
> gagate> ,struct std::char_traits<char>,class std::allocator<char> >,struct
> gagate> boost::property<enum boost::edge_weight_t,class
std::complex<double>,struct
> gagate> boost::no_property> > > *,struct boost::detail::oeip_<unsigned
int>,class
> gagate> boost::detail::edge_desc_impl<st
> gagate> ruct boost::directed_tag,unsigned int>,class
> gagate> boost::detail::edge_desc_impl<struct boost::directed_tag,unsigned
int>,class
> gagate> boost::detail::edge_desc_impl<struct boost::directed_tag,unsigned
int>
> gagate> *,struct boost::multi_pass_input_iterator_tag,int>' bein
> gagate> g compiled
> gagate> e:\c++lib\boost\detail\iterator.hpp(379) : see reference
to class
> gagate> template instantiation 'boost::is_pointer<struct
> gagate> boost::iterator_adaptor<class boost::detail::sep_<unsigned
int,struct
> gagate> boost::property<enum boost::edge_name_t,class std::basic
> gagate> _string<char,struct std::char_traits<char>,class
std::allocator<char>
> gagate> >,struct boost::property<enum boost::edge_weight_t,class
> gagate> std::complex<double>,struct boost::no_property> > > *,struct
> gagate> boost::detail::oeip_<unsigned int>,class boost::detail::edge_
> gagate> desc_impl<struct boost::directed_tag,unsigned int>,class
> gagate> boost::detail::edge_desc_impl<struct boost::directed_tag,unsigned
int>,class
> gagate> boost::detail::edge_desc_impl<struct boost::directed_tag,unsigned
int>
> gagate> *,struct boost::multi_pass_input_iterator_ta
> gagate> g,int> >' being compiled
> gagate>
> gagate>
> gagate>
> gagate> --
> gagate>
> gagate>
> gagate> To unsubscribe, send email to:
<mailto:boost-unsubscribe_at_[hidden]>
> gagate>
> gagate>
> gagate> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> gagate>
> gagate>
> gagate>
>
> ----------------------------------------------------------------------
> Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
> Ph.D. Candidate email: jsiek_at_[hidden]
> Univ. of Notre Dame work phone: (219) 631-3906
> ----------------------------------------------------------------------
>
>
>
> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
--
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk