by simplotek · 4y ago · 0 comments
I don't thing this is remotely true. C++ pragmas were designed with the express purpose of providing additional information to compilers.
I'm not so sure attributes are better. They have political traction, but that does not mean better. All major compilers use pragmas effectively to implement custom compiler flags. See for instance how Visual C++ uses pragmas extensively to toggle specific compiler warnings, not to mention the infamous #pragma once