Taylor R Campbell <riastr...@netbsd.org> writes:

> How is the host C++ compiler supposed to know that we are asking it to
> compile C++11 and not C++98 or C++17?

The compilation line should pass --std=c++11.  Arguably, any program
that invokes a compiler and does not pass a --std is buggy.  Things only
mostly work because mostly --std=c++17 will compile C++11 programs, and
the tendency is for later compiler versions to have higher default
languages.

In pkgsrc, we have a way to add --std=foo via the wrappers,  to handle
packages that don't do this right (generally, at all).

Is that what you meant, or something else?

Reply via email to