|
Boost Testing : |
Subject: Re: [Boost-testing] [boost]filesystem/v2 failure breaking Darwin testing
From: Christopher Jefferson (chris_at_[hidden])
Date: 2010-06-17 16:49:12
On 17 Jun 2010, at 21:45, Beman Dawes wrote:
> Chris,
>
>> ...
>> The tests that were run today have both 63025 and 62912 but compilation
>> still fails with the following messages:
>> ...
>
> If I'm reading the error messages correctly, then the little program
> below should fail to compile. Could you please give it a try? If it
> does compile, when run it should produce the output "dispatch() array,
> N=1".
Seems fine.
caj_at_nyanko:~/temp$ clang++ t.cc
caj_at_nyanko:~/temp$ ./a.out
dispatch() array, N=1
>
> If it fails to compile, with messages similar to the real failure,
> could you please ask one of your compiler engineers what the problem
> is? It is compiling fine on GCC, VC++, Intel, etc.
>
> Thanks,
>
> --Beman
>
> #include <iostream>
>
> template <class Container> inline
> void dispatch(const Container & c)
> {
> std::cout << "dispatch() container\n";
> }
>
> template <typename T, size_t N> inline
> void dispatch(T (&array)[N]) // T, N deduced
> {
> std::cout << "dispatch() array, N=" << N << "\n";
> }
>
> template <class Source>
> void path(Source const& source)
> {
> dispatch(source);
> }
>
> int main()
> {
> path("");
> return 0;
> }
> _______________________________________________
> Boost-Testing mailing list
> Boost-Testing_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing