File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ cmake_minimum_required (VERSION 3.1)
19
19
set (CMAKE_CXX_STANDARD 17 )
20
20
set (CMAKE_CXX_STANDARD_REQUIRED YES ) # Don't fall back to an earlier version.
21
21
22
+ if (MSVC )
23
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17" )
24
+ endif ()
25
+
22
26
# Turn on virtual folders for visual studio
23
27
set_property (GLOBAL PROPERTY USE_FOLDERS ON )
24
28
Original file line number Diff line number Diff line change @@ -100,10 +100,10 @@ Examples of typical Do's and Don'ts:
100
100
they result in hard to understand errors, and can make correct use of
101
101
your API harder to understand.
102
102
103
- * Utilize C++11 features where appropriate. This project has adopted C++11 ,
103
+ * Utilize C++17 features where appropriate. This project has adopted C++17 ,
104
104
and features such as `std::unique_ptr`, `std::shared_ptr`,
105
- `std::make_unique`, and `std::move ` are encouraged to improve code safety
106
- and readability. However, avoid features from C++14 or newer standards .
105
+ `std::make_unique`, `std::move`, and `std::optional ` are encouraged to
106
+ improve code safety and readability .
107
107
108
108
* Go easy on objectifying everything, and prefer value types. In languages
109
109
like Java it is common to give each "concept" your API deals with its own
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ libs/windows | Windows static libraries (desktop or stub
72
72
73
73
## C++ Language Standards
74
74
75
- The Firebase C++ SDK supports the C++14 language standard. For more information,
75
+ The Firebase C++ SDK supports the C++17 language standard. For more information,
76
76
please see our [ C++ Language Standard Support
77
77
Criteria] ( https://opensource.google/documentation/policies/cplusplus-support#c_language_standard ) .
78
78
@@ -677,6 +677,7 @@ code.
677
677
## Release Notes
678
678
### Upcoming Release
679
679
- Changes
680
+ - General: Updated the minimum C++ standard from C++14 to C++17.
680
681
- iOS: Added an option to explicitly specify your app's ` AppDelegate ` class
681
682
name via the ` FirebaseAppDelegateClassName ` key in ` Info.plist ` . This
682
683
provides a more direct way for Firebase to interact with your specified
You can’t perform that action at this time.
0 commit comments