Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-04-26 06:01:15


Markus Sch?pflin wrote:

> Vladimir Prus wrote:
>
>> Hello,
>> just before feature freeze, I've committed some changes to
>> program_options:
>
> Seems like this broke program_options on Tru64/cxx.

Did it work before? I recall some bind-releated problems on this platform
were present previously.

> cxx: Error: /vol2/boost/boost/boost/bind.hpp, line 978: #266 "value" is
> ambiguous
> detected during:
> instantiation of class "boost::_bi::add_value<T> [with
> T=boost::program_options::detail::cmdline *]" at
> line 1055
> instantiation of class "boost::_bi::list_av_2<A1, A2> [with
> A1=boost::program_options::detail::cmdline *,
> A2=boost::arg<1>]" at line 200 of

Can you modify that line, replacing:

template<class T> struct add_value
{
    typedef value<T> type;
};

template<class T> struct add_value< value<T> >
{
    typedef value<T> type;
};

with

template<class T> struct add_value
{
    typedef boost::_bi::value<T> type;
};

template<class T> struct add_value< value<T> >
{
    typedef boost::_bi::value<T> type;
};

? Looks like the compiler is incorrectly considering both boost::_bi::value
(bind internal) and boost::program_options::value.

Thanks,
Volodya


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