|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-03-07 11:52:37
Fernando Cacciola wrote:
> Anyway, here's the diff:
..>
> 79,91d78
> < // Daniel Wallin discovered that bind/apply.hpp badly interacts with the
> apply<>
> < // member template of a factory as used in the optional<>
> implementation. < // He proposed this simple fix which is to move the call
> to apply<> outside
> < // namespace boost.
> < namespace boost_optional_detail
> < {
> < template <class T, class Factory>
> < void construct(Factory const& factory, void* address)
> < {
> < factory.BOOST_NESTED_TEMPLATE apply<T>(address);
> < }
> < }
> <
> 325c312
> < boost_optional_detail::construct<value_type>(factory,
> m_storage.address());
> ---
>> factory.BOOST_NESTED_TEMPLATE
>> apply<value_type>(m_storage.address()) ;
>
>
> Unfortunately, I couldn't test it on gcc.
....
> Googling indicates that I have my gcc installation messed up, but couldn't
> fix it yet.
>
> So, can anyone tried the patch on gcc? It works here on VC80 and VC7.1.
If you post your patch as attachment (so that lines are not wrapped)
and preferrably in unified diff format (cvs diff -u), I can test with
my gcc.
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk