Boost logo

Boost Users :

Subject: Re: [Boost-users] seg fault
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-24 11:42:09


AMDG

Andrew Sutton wrote:
>> typedef string Colour;
>>
>> struct edge_properties
>> {
>>
>> vector < set< Colour > & > eColours;
>>
>> }
>>
>
> No, it won't compile. Template arguments of a vector are required to be
> default constructible.
>

The template arguments of vector are only required
to be CopyConstructible and Assignable.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net