On Tue, May 19, 2015 at 2:27 AM, Gavin Lambert
On 19/05/2015 09:23, Michael Ainsworth wrote:
Such a library would be reasonable small, but do you think it would be a useful addition to Boost? I'm still shaking my head that environment variables aren't better supported by standard C++.
They're more popular in POSIX; but at least on Windows, environment variables are considered old-fashioned and discouraged from use without significant compelling reason.
Is there a reference for such a discouragement? Sure, most Windows-only programs just use registry but I wouldn't say environment variables are discouraged from being used. For instance, most development software, including MSVC, use environment for configuration, and registry is not seen as a replacement.