You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is some notes I've been taking on the features that new versions of C++ have that we might want to use. At time of writing the main branch is on C++11 and dev is on C++17. Compiler support for features can be found here. This list is far from complete, it is simply the things I've found as useful or potentially useful.
C++14
std::make_unique for instantiating std::unique_ptrs for arrays
Required by GoogleTest versions greater than 1.12.1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is some notes I've been taking on the features that new versions of C++ have that we might want to use. At time of writing the main branch is on C++11 and dev is on C++17. Compiler support for features can be found here. This list is far from complete, it is simply the things I've found as useful or potentially useful.
C++14
std::make_unique
for instantiatingstd::unique_ptr
s for arraysC++17
Features of C++17
std::filesystem
for better handling of files and directories, especially in system testsoperator[]
forstd::shared_ptr
if
statements to avoid having them clutter up the higher scopeif constexpr
to force evalutation of if statement at compile timeC++20
std::bitcast
to directly copy the bits of one type to another instead of memcpystd::format
. link to discussionC++23
Beta Was this translation helpful? Give feedback.
All reactions