mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[SCons] Compile using C++17 standard
This is a prerequisite to using Boost.DLL with the std::filesystem library.
This commit is contained in:
committed by
Ingmar Schoegl
parent
e428489656
commit
29c7094b80
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user