|
Boost Users : |
Subject: Re: [Boost-users] seg fault
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-10-24 09:54:09
> 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. Reference types (set<color>&) are not default
constructible. See:
set<color>& x; // Error.
Andrew Sutton
andrew.n.sutton_at_[hidden]
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