[SCons] Compile using C++17 standard

This is a prerequisite to using Boost.DLL with the std::filesystem library.
This commit is contained in:
Ray Speth
2023-01-29 11:48:33 -05:00
committed by Ingmar Schoegl
parent e428489656
commit 29c7094b80
2 changed files with 4 additions and 4 deletions

View File

@@ -79,8 +79,8 @@
* Class names use `InitialCapsNames`
* Methods use `camelCaseNames`
* Do not indent the contents of namespaces
* Code should follow the C++14 standard, with minimum required compiler versions
GCC 6.1, Clang 3.4, MSVC 14.1 (2017) and Intel 17.0.
* Code should follow the C++17 standard, with minimum required compiler versions
GCC 7.0, Clang 4.0, MSVC 14.14 (Visual Studio 2017 version 15.7) and Intel 19.0.
* Avoid manual memory management (that is, `new` and `delete`), preferring to use
standard library containers, as well as `std::unique_ptr` and
`std::shared_ptr` when dynamic allocation is required.

View File

@@ -219,8 +219,8 @@ config_options = [
options with spaces, for example, "cxx_flags='-g -Wextra -O3 --std=c++14'"
""",
{
"cl": "/EHsc",
"default": "-std=c++14"
"cl": "/EHsc /std:c++17",
"default": "-std=c++17"
}),
Option(
"CC",