On 27 May 2011 09:46, Matthias Kretz wrote: >> >> The cases where you have to work around compiler issues in a >> _header_ file should be very rare. > > And? Because they are rare we shouldn't care? I'm developing a template > library for SSE, AVX, LRBni, ... and this stuff is like daily bread for me. So > I'm surely a special GCC user here... > > But this SIMD stuff is hard to understand and my library is supposed to make > it easier for average developers. I think my API reaches that goal, but > compiler availability and compiler bugs almost negate that again. So one of my > major goals is to make it just work as good as possible with any given > compiler. It's just plain hard to impossible ATM. This simple macro would be > of major help. At the same time I don't see any downsides, do you?
It's an additional maintenance burden. And when a vendor doesn't use the macro or uses it "wrong" (for your purposes) you still need to rely on configure checks to see what actually works with a given compiler.