From a1bc52196a738c3fd784b1d010be9d4821c9ec45 Mon Sep 17 00:00:00 2001 From: Maurice Jamieson Date: Sun, 25 Feb 2024 17:33:46 +0000 Subject: [PATCH 1/2] Updated C++23 draft version, ARCHER2 default GCC version --- lectures/cpp-intro/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lectures/cpp-intro/README.md b/lectures/cpp-intro/README.md index a3b8c18..c124b70 100644 --- a/lectures/cpp-intro/README.md +++ b/lectures/cpp-intro/README.md @@ -126,7 +126,7 @@ Every three years there is a new update to the International Standard Latest one, C++20, still not fully implemented by an compiler. Major new features are ranges, coroutines, concepts, and modules -C++23 is still in draft (N4944). Major features likely to include +C++23 is still in draft (N4950). Major features likely to include networking, string formatting, executors, and consolidation of new C++20 features @@ -253,12 +253,12 @@ __ARCHER2__: You have log in details. Once connected you need to load the up-to-date compilers: ``` -module load gcc/10.2.0 +module load gcc/11.2.0 ``` ??? -There are later versions of GCC on ARCHER2 but 10.2.0 is the default version +There are later versions of GCC on ARCHER2 but 11.2.0 is the default version --- # Getting the source code @@ -408,7 +408,7 @@ Go look them up on CPP Reference as you need to # Strings -The standard library has a class* called `string` that holds a string +The standard library has a class called `string` that holds a string of text characters. You have to `#include ` to use it which includes the "header From 2e182069bbcae5d6448936fe92a153e301dae6be Mon Sep 17 00:00:00 2001 From: Maurice Jamieson Date: Sun, 25 Feb 2024 20:39:51 +0000 Subject: [PATCH 2/2] Minor updates to formatting --- lectures/classes/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/classes/README.md b/lectures/classes/README.md index feeb6ae..30980ef 100644 --- a/lectures/classes/README.md +++ b/lectures/classes/README.md @@ -249,7 +249,7 @@ Note that an object in C++ may not be an object in the OOP sense! --- # Member functions -Typically these are declared in the class definition... +Typically these are *declared* in the class definition... ```C++ // complex.hpp @@ -269,7 +269,7 @@ If anyone asks, discussion of const is coming up! --- # Member functions -... and defined out of line +... and *defined* out of line ```C++ // complex.cpp