Am 28.12.2014 um 12:51 schrieb Stephan Witt <[email protected]>:

> Am 28.12.2014 um 12:30 schrieb Georg Baum <[email protected]>:
>> 
>> Stephan Witt wrote:
>>> 
>>> Is it possible that this compiler - based on gcc 4.2.1 - simply does not
>>> support these template constructs?
>> 
>> Yes. I dug out my old compiler archive, and indeed I could reproduce the 
>> error with a stock gcc 4.2.4. With a typedef the compilation works, but I 
>> get assembler errors (probably because the old gcc creates obsolete syntax 
>> for the current assembler). Does the attached patch work for you? I does 
>> also make the code a bit more readable (technically speaking most of the 
>> changes would not be needed).
>> 
>>> I tried to verify this with the help
>>> of google - but I didn't find much useful infos. Perhaps, the best match
>>> is http://mlucassmith.tumblr.com/post/8052052794/c-11-on-osx-is-a-mess
>> 
>> This is something different:
> 
> I know, but the statement regarding gcc 4.2.1 and it’s future on Mac was 
> interesting.
> 
>> The code in question is not C++11. But C++11 is 
>> indeed a mess everywhere.
>> 
>> 
>> Georg<x.diff>
> 
> I’ll try this when back on my production Mac OS disk.

Yes, this patch solved the problem for "my" compiler.

Thanks.
Stephan

> Now I’m on Yosemite and the problem is gone.
> The compiler is clang 6:
> $ clang -v
> Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
> Target: x86_64-apple-darwin14.0.0
> Thread model: posix
> 
> Stephan

Reply via email to