[Interest] How do you want to select exactly C++11 with GCC 6+?

Krzysztof Kawa krzysiek.kawa at gmail.com
Sun Mar 12 12:22:27 CET 2017


2017-03-12 11:21 GMT+01:00 Frédéric Marchal
<frederic.marchal at wowtechnology.com>:
> Could somebody kindly summarize the reasons for adding more options such as
> min_c++ or c++latest or restricting to only one C++ version?

My reasons:
- You get what you ask for:
  c++11 is c++11, not c++14 or c++20 (why would 42 mean 75?)
- You ask for what you want, not rely on internal config logic:
  min-c++11 means c++11 or above
- You don't get more than you ask for, c++ versions are not inclusive
nor incremental, semantics change and suff gets removed too sometimes:
  max-c++11 means c++11 or below
- If you want features as they come in, fire and forget: c++latest



More information about the Interest mailing list