Boost logo

Boost :

Subject: Re: [boost] [Heaps] Compiler error: ‘optional’ was not declared in this scope
From: Tim Blechmann (tim_at_[hidden])
Date: 2011-06-08 03:43:07


> > I'm trying to do some simple tests with the proposed Heaps library, but
>
> > I get a mountain of compiler errors that start like this:
> Well I've got it to work by changing priority_queue.hpp from this:
>
> typedef parameter::parameters<optional<tag::allocator>,
> optional<tag::compare>,
> optional<tag::stable>
>
> > priority_queue_signature;
>
> to this:
>
> typedef parameter::parameters<boost::parameter::optional<tag::allocator>,
> boost::parameter::optional<tag::compare>,
> boost::parameter::optional<tag::stable>
>
> > priority_queue_signature;
>
> I really don't know what's going on there.

haven't seen that before ... which compiler? might be a good idea to change this
in general ...

tim




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk