I'm trying to not use extensions, whenever possible.
I'm trying to not use extensions, whenever possible.
If it were that easy to do portably, the standards committee wouldn't have bothered with the whole atomics thing to begin with.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
How about adding yet more clarity, by saying
- what processors you care about (more than just x86 doesn't say anything)
- what compilers you care about
- what operating systems you care about
- what range of atomics you care about
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.