Boost logo

Boost :

Subject: Re: [boost] multi_index problems
From: Adam Merz (adammerz_at_[hidden])
Date: 2012-01-26 15:39:53

Brook Milligan <brook <at>> writes:
> I am trying to use boost.MultiIndex as a class data member and am
> having difficulty because it seems that calling get<>() will not
> compile on a NetBSD box (gcc version 4.1.3). The code below
> illustrates a simple test case.
> Am I missing something obvious or doing something clearly mistaken?

Yes. ;-] The line


should be

    c_.template get<0>();

See this FAQ for some explanation:

> Any help is greatly appreciated.
> Thanks alot.
> Cheers,
> Brook


Boost list run by bdawes at, gregod at, cpdaniel at, john at