|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-10-14 05:58:42
Simon Atanasyan wrote:
> 2007/10/13, Vladimir Prus <ghost_at_[hidden]>:
>> Looking at program_options failures, it seems like two platforms
>> are fully not working due to issues in Boost.Test.
>>
>> First is MIPS:
>> http://tinyurl.com/3c8avh
>>
>> Second is Sun:
>> http://tinyurl.com/2yjlpd
>>
>> Can those issues be fixed in near future?
>
> It's a bug in Sun C++. This bug exists in all version and current
> development branch. Compiler cannot select overloaded function and
> shows incorrect ambiguity error in the following test case:
>
> template <typename T>
> void foo(T const & t) {}
>
> template <typename T, unsigned N>
> void foo(T ( & t ) [N]) {}
>
> int main()
> {
> foo("test");
> }
>
> If remove 'const' from the first function compiler works good.
Even if that's Sun C++ issue, it's unfortunate that Boost.Test
is affected. Maybe, a workaround in Boost.Test is possible?
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk