C++11: Update compilation rules to specify C++11 support and conformance
The change from C++0x to C++11 allows all of C++11 functionality to be used in OpenFOAM, in particular constructor delegation which avoids code duplication or constructor helper functions. However, this also means a change to the minimum gcc version supported which is now 4.7 rather than 4.5. Note that gcc-4.7 does not support the entire C++11 standard but does support all of the functionality currently needed for further OpenFOAM development. The minimum gcc-version which supports the entire C++11 standard is 4.8 which is now the recommended minimum gcc version.
This commit is contained in:
@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
|
||||
# Suppress some warnings for flex++ and CGAL
|
||||
c++LESSWARN =
|
||||
|
||||
CC = g++ -std=c++0x
|
||||
CC = g++ -std=c++11
|
||||
|
||||
include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user