On 2019-2-5 13:59 , Michael Dickens wrote:
> The interesting strangeness is that the clang++ compilers (both Apple and MP) 
> do not generate errors when using -std=c++98 or -std=c++03 ... which is 
> wrong! The #warning printout indicates that the correct __cplusplus is 
> selected, but the build should not succeed! All g++ compilers correctly error 
> out with these -std settings.
> 
> This lack of compliance at least by default is troubling! Maybe I'm missing 
> something here? Are there some other flags I should be setting to keep clang 
> from figuring out the c++ standard and using it instead of what I specify -- 
> if this is the issue?

Are you certain that the C++98/03 standards prohibit the standard
library from providing this function? It may well be that an
implementation is compliant as long as everything specified in the
standard is present and behaves correctly; providing additional
functionality may be irrelevant.

- Josh

Reply via email to