From 36cb0b0f0f03375b3a3cf31d4b2e0d11e6200b80 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 2 Nov 2025 12:04:41 +0100 Subject: [PATCH 01/16] build(deps): bump actions/setup-python from 5 to 6 (#1002) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ecc8c27e..188fc218 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -19,7 +19,7 @@ jobs: ref: ${{github.event.pull_request.head.sha}} repository: ${{github.event.pull_request.head.repo.full_name}} - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.10" - name: Run pre-commit checks on PR From e1592095a58cee15eaf3fee0e51400e2ac943756 Mon Sep 17 00:00:00 2001 From: Christian glacet Date: Sun, 2 Nov 2025 12:42:24 +0100 Subject: [PATCH 02/16] Format Flower class methods indentation to limit line wrap (#1003) Co-authored-by: Alexander Hans --- concepts/headers/about.md | 111 +++++++++++++++++++------------ concepts/headers/introduction.md | 106 +++++++++++++++++++---------- 2 files changed, 142 insertions(+), 75 deletions(-) diff --git a/concepts/headers/about.md b/concepts/headers/about.md index 8d59dcba..5983cd3c 100644 --- a/concepts/headers/about.md +++ b/concepts/headers/about.md @@ -18,17 +18,24 @@ If you want to write a library called "quick_math" that offers a function "super ```cpp // A file named quick_math.h #pragma once + namespace quick_math { - double super_root(double x, int n); + +double super_root(double x, int n); + } ``` ```cpp // A file named quick_math.cpp -#include "quick_math.h" #include + +#include "quick_math.h" + double quick_math::super_root(double x, int n) { - while(n) { x = std::sqrt(x), --n;} + while (n) { + x = std::sqrt(x), --n; + } return x; } ``` @@ -51,31 +58,45 @@ One possible layout is to keep all the implementation details in the source file // A file named robot_flower.h #if !defined(ROBOT_FLOWER_H) #define ROBOT_FLOWER_H + #include + namespace robots { - class Flower { - private: - bool needs_water{}; - int size{}; - std::string name{}; - public: - Flower(std::string name, int size = 0); - void give_water(); - std::string get_name(); - int get_size(); - void start_next_day(); - }; -} + +class Flower { + private: + bool needs_water{}; + int size{}; + std::string name{}; + + public: + Flower(std::string name, int size = 0); + void give_water(); + std::string get_name(); + int get_size(); + void start_next_day(); +}; +} // namespace robots #endif ``` ```cpp // A file named robot_flower.cpp #include "robot_flower.h" -robots::Flower::Flower(std::string name, int size) {this->name = "Robotica " + name; this->size = size;} -void robots::Flower::start_next_day() {if (!needs_water) ++size; needs_water = true;} -std::string robots::Flower::get_name() {return name;} -int robots::Flower::get_size() {return size;} + +robots::Flower::Flower(std::string name, int size) { + this->name = "Robotica " + name; + this->size = size; +} + +void robots::Flower::start_next_day() { + if (!needs_water) ++size; + needs_water = true; +} + +std::string robots::Flower::get_name() { return name; } + +int robots::Flower::get_size() { return size; } ``` When the header is used as an API overview, that is where a person would look for information like default values. @@ -87,21 +108,31 @@ Another layout option is a _header only_ library, that does not have a `.cpp` fi ```cpp // A file named robot_flower.h #pragma once + #include + namespace robots { - class Flower { - private: - bool needs_water{}; - int size{}; - std::string name{}; - public: - Flower(std::string name, int size = 0) {this->name = "Robotica " + name; this->size = size;} - void give_water() {needs_water = false;} - std::string get_name() {return name;} - int get_size() {return size;} - void start_next_day() {if (!needs_water) ++size; needs_water = true;} - }; -} + +class Flower { + private: + bool needs_water{}; + int size{}; + std::string name{}; + + public: + Flower(std::string name, int size = 0) { + this->name = "Robotica " + name; + this->size = size; + } + void give_water() { needs_water = false; } + std::string get_name() { return name; } + int get_size() { return size; } + void start_next_day() { + if (!needs_water) ++size; + needs_water = true; + } +}; +} // namespace robots ``` Projects might use combinations of these layouts and there is a lot of discussion as to what might be the best fit for each use case. @@ -129,9 +160,7 @@ int myFunction(int n) { } } -int myOtherFunction(int m) { - return myFunction(m / 2); -} +int myOtherFunction(int m) { return myFunction(m / 2); } ``` When `myFunction` is defined, the compiler does not know about `myOtherFunction` yet. @@ -142,8 +171,8 @@ The compiler assumes that the definition will follow at some later point after t The next example shows how a forward declaration is used for functions. ```cpp -int myFunction(int n); // Forward declaration of myFunction -int myOtherFunction(int m); // Forward declaration of myOtherFunction +int myFunction(int n); // Forward declaration of myFunction +int myOtherFunction(int m); // Forward declaration of myOtherFunction // Definition of myFunction int myFunction(int n) { @@ -155,9 +184,7 @@ int myFunction(int n) { } // Definition of myOtherFunction -int myOtherFunction(int m) { - return myFunction(m / 2); -} +int myOtherFunction(int m) { return myFunction(m / 2); } ``` ## Include Guards via ifndef @@ -178,7 +205,9 @@ The syntax can be seen below with `MY_HEADER_FILE_H` as a variable. ```cpp #ifndef MY_HEADER_FILE_H /* any name uniquely mapped to file name */ #define MY_HEADER_FILE_H + // file content + #endif ``` diff --git a/concepts/headers/introduction.md b/concepts/headers/introduction.md index e7db48e1..978b94c6 100644 --- a/concepts/headers/introduction.md +++ b/concepts/headers/introduction.md @@ -18,17 +18,24 @@ If you want to write a library called "quick_math" that offers a function "super ```cpp // A file named quick_math.h #pragma once + namespace quick_math { - double super_root(double x, int n); -} + +double super_root(double x, int n); + +} // namespace quick_math ``` ```cpp // A file named quick_math.cpp -#include "quick_math.h" #include + +#include "quick_math.h" + double quick_math::super_root(double x, int n) { - while(n) { x = std::sqrt(x), --n;} + while (n) { + x = std::sqrt(x), --n; + } return x; } ``` @@ -51,31 +58,49 @@ One possible layout is to keep all the implementation details in the source file // A file named robot_flower.h #if !defined(ROBOT_FLOWER_H) #define ROBOT_FLOWER_H + #include + namespace robots { - class Flower { - private: - bool needs_water{}; - int size{}; - std::string name{}; - public: - Flower(std::string name, int size = 0); - void give_water(); - std::string get_name(); - int get_size(); - void start_next_day(); - }; -} + +class Flower { + private: + bool needs_water{}; + int size{}; + std::string name{}; + + public: + Flower(std::string name, int size = 0); + void give_water(); + std::string get_name(); + int get_size(); + void start_next_day(); +}; + +} // namespace robots + #endif ``` ```cpp // A file named robot_flower.cpp #include "robot_flower.h" -robots::Flower::Flower(std::string name, int size) {this->name = "Robotica " + name; this->size = size;} -void robots::Flower::start_next_day() {if (!needs_water) ++size; needs_water = true;} -std::string robots::Flower::get_name() {return name;} -int robots::Flower::get_size() {return size;} + +robots::Flower::Flower(std::string name, int size) { + this->name = "Robotica " + name; + this->size = size; +} + +void robots::Flower::start_next_day() { + if (!needs_water) { + ++size; + } + needs_water = true; +} + +std::string robots::Flower::get_name() { return name; } + +int robots::Flower::get_size() { return size; } ``` When the header is used as an API overview, that is where a person would look for information like default values. @@ -87,21 +112,34 @@ Another layout option is a _header only_ library, that does not have a `.cpp` fi ```cpp // A file named robot_flower.h #pragma once + #include + namespace robots { - class Flower { - private: - bool needs_water{}; - int size{}; - std::string name{}; - public: - Flower(std::string name, int size = 0) {this->name = "Robotica " + name; this->size = size;} - void give_water() {needs_water = false;} - std::string get_name() {return name;} - int get_size() {return size;} - void start_next_day() {if (!needs_water) ++size; needs_water = true;} - }; -} + +class Flower { + private: + bool needs_water{}; + int size{}; + std::string name{}; + + public: + Flower(std::string name, int size = 0) { + this->name = "Robotica " + name; + this->size = size; + } + void give_water() { needs_water = false; } + std::string get_name() { return name; } + int get_size() { return size; } + void start_next_day() { + if (!needs_water) { + ++size; + } + needs_water = true; + } +}; + +} // namespace robots ``` Projects might use combinations of these layouts and there is a lot of discussion as to what might be the best fit for each use case. From d539e3d245c350a49dae4b566d4d1c295df21570 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 2 Nov 2025 13:45:02 +0100 Subject: [PATCH 03/16] =?UTF-8?q?=F0=9F=A4=96=20Auto-sync=20docs,=20metada?= =?UTF-8?q?ta,=20and=20filepaths=20(#999)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../binary-search-tree/.docs/instructions.md | 23 ++++++++ .../eliuds-eggs/.docs/introduction.md | 2 +- exercises/practice/luhn/.docs/instructions.md | 45 +++++++++------- exercises/practice/luhn/.docs/introduction.md | 4 +- .../practice/meetup/.docs/instructions.md | 2 +- .../phone-number/.docs/instructions.md | 2 +- .../protein-translation/.docs/instructions.md | 47 +++++++---------- exercises/practice/say/.docs/instructions.md | 52 +++---------------- exercises/practice/say/.docs/introduction.md | 6 +++ .../practice/triangle/.docs/instructions.md | 6 +++ 10 files changed, 93 insertions(+), 96 deletions(-) create mode 100644 exercises/practice/say/.docs/introduction.md diff --git a/exercises/practice/binary-search-tree/.docs/instructions.md b/exercises/practice/binary-search-tree/.docs/instructions.md index c9bbba5b..7625220e 100644 --- a/exercises/practice/binary-search-tree/.docs/instructions.md +++ b/exercises/practice/binary-search-tree/.docs/instructions.md @@ -19,29 +19,52 @@ All data in the left subtree is less than or equal to the current node's data, a For example, if we had a node containing the data 4, and we added the data 2, our tree would look like this: +![A graph with root node 4 and a single child node 2.](https://assets.exercism.org/images/exercises/binary-search-tree/tree-4-2.svg) + +```text 4 / 2 +``` If we then added 6, it would look like this: +![A graph with root node 4 and two child nodes 2 and 6.](https://assets.exercism.org/images/exercises/binary-search-tree/tree-4-2-6.svg) + +```text 4 / \ 2 6 +``` If we then added 3, it would look like this +![A graph with root node 4, two child nodes 2 and 6, and a grandchild node 3.](https://assets.exercism.org/images/exercises/binary-search-tree/tree-4-2-6-3.svg) + +```text 4 / \ 2 6 \ 3 +``` And if we then added 1, 5, and 7, it would look like this +![A graph with root node 4, two child nodes 2 and 6, and four grandchild nodes 1, 3, 5 and 7.](https://assets.exercism.org/images/exercises/binary-search-tree/tree-4-2-6-1-3-5-7.svg) + +```text 4 / \ / \ 2 6 / \ / \ 1 3 5 7 +``` + +## Credit + +The images were created by [habere-et-dispertire][habere-et-dispertire] using [PGF/TikZ][pgf-tikz] by Till Tantau. + +[habere-et-dispertire]: https://exercism.org/profiles/habere-et-dispertire +[pgf-tikz]: https://en.wikipedia.org/wiki/PGF/TikZ diff --git a/exercises/practice/eliuds-eggs/.docs/introduction.md b/exercises/practice/eliuds-eggs/.docs/introduction.md index 81989748..2b2e5c43 100644 --- a/exercises/practice/eliuds-eggs/.docs/introduction.md +++ b/exercises/practice/eliuds-eggs/.docs/introduction.md @@ -58,7 +58,7 @@ The position information encoding is calculated as follows: ### Decimal number on the display -16 +8 ### Actual eggs in the coop diff --git a/exercises/practice/luhn/.docs/instructions.md b/exercises/practice/luhn/.docs/instructions.md index 5bbf007b..7702c6bb 100644 --- a/exercises/practice/luhn/.docs/instructions.md +++ b/exercises/practice/luhn/.docs/instructions.md @@ -1,6 +1,6 @@ # Instructions -Determine whether a credit card number is valid according to the [Luhn formula][luhn]. +Determine whether a number is valid according to the [Luhn formula][luhn]. The number will be provided as a string. @@ -10,54 +10,59 @@ Strings of length 1 or less are not valid. Spaces are allowed in the input, but they should be stripped before checking. All other non-digit characters are disallowed. -### Example 1: valid credit card number +## Examples -```text -4539 3195 0343 6467 -``` +### Valid credit card number -The first step of the Luhn algorithm is to double every second digit, starting from the right. -We will be doubling +The number to be checked is `4539 3195 0343 6467`. + +The first step of the Luhn algorithm is to start at the end of the number and double every second digit, beginning with the second digit from the right and moving left. ```text 4539 3195 0343 6467 ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ (double these) ``` -If doubling the number results in a number greater than 9 then subtract 9 from the product. -The results of our doubling: +If the result of doubling a digit is greater than 9, we subtract 9 from that result. +We end up with: ```text 8569 6195 0383 3437 ``` -Then sum all of the digits: +Finally, we sum all digits. +If the sum is evenly divisible by 10, the original number is valid. ```text -8+5+6+9+6+1+9+5+0+3+8+3+3+4+3+7 = 80 +8 + 5 + 6 + 9 + 6 + 1 + 9 + 5 + 0 + 3 + 8 + 3 + 3 + 4 + 3 + 7 = 80 ``` -If the sum is evenly divisible by 10, then the number is valid. -This number is valid! +80 is evenly divisible by 10, so number `4539 3195 0343 6467` is valid! + +### Invalid Canadian SIN + +The number to be checked is `066 123 478`. -### Example 2: invalid credit card number +We start at the end of the number and double every second digit, beginning with the second digit from the right and moving left. ```text -8273 1232 7352 0569 +066 123 478 + ↑ ↑ ↑ ↑ (double these) ``` -Double the second digits, starting from the right +If the result of doubling a digit is greater than 9, we subtract 9 from that result. +We end up with: ```text -7253 2262 5312 0539 +036 226 458 ``` -Sum the digits +We sum the digits: ```text -7+2+5+3+2+2+6+2+5+3+1+2+0+5+3+9 = 57 +0 + 3 + 6 + 2 + 2 + 6 + 4 + 5 + 8 = 36 ``` -57 is not evenly divisible by 10, so this number is not valid. +36 is not evenly divisible by 10, so number `066 123 478` is not valid! [luhn]: https://en.wikipedia.org/wiki/Luhn_algorithm diff --git a/exercises/practice/luhn/.docs/introduction.md b/exercises/practice/luhn/.docs/introduction.md index ec2bd709..dee48006 100644 --- a/exercises/practice/luhn/.docs/introduction.md +++ b/exercises/practice/luhn/.docs/introduction.md @@ -2,10 +2,10 @@ At the Global Verification Authority, you've just been entrusted with a critical assignment. Across the city, from online purchases to secure logins, countless operations rely on the accuracy of numerical identifiers like credit card numbers, bank account numbers, transaction codes, and tracking IDs. -The Luhn algorithm is a simple checksum formula used to ensure these numbers are valid and error-free. +The Luhn algorithm is a simple checksum formula used to help identify mistyped numbers. A batch of identifiers has just arrived on your desk. All of them must pass the Luhn test to ensure they're legitimate. -If any fail, they'll be flagged as invalid, preventing errors or fraud, such as incorrect transactions or unauthorized access. +If any fail, they'll be flagged as invalid, preventing mistakes such as incorrect transactions or failed account verifications. Can you ensure this is done right? The integrity of many services depends on you. diff --git a/exercises/practice/meetup/.docs/instructions.md b/exercises/practice/meetup/.docs/instructions.md index 000de2fd..8b1bda5e 100644 --- a/exercises/practice/meetup/.docs/instructions.md +++ b/exercises/practice/meetup/.docs/instructions.md @@ -2,7 +2,7 @@ Your task is to find the exact date of a meetup, given a month, year, weekday and week. -There are five week values to consider: `first`, `second`, `third`, `fourth`, `last`, `teenth`. +There are six week values to consider: `first`, `second`, `third`, `fourth`, `last`, `teenth`. For example, you might be asked to find the date for the meetup on the first Monday in January 2018 (January 1, 2018). diff --git a/exercises/practice/phone-number/.docs/instructions.md b/exercises/practice/phone-number/.docs/instructions.md index 62ba48e9..5d4d3739 100644 --- a/exercises/practice/phone-number/.docs/instructions.md +++ b/exercises/practice/phone-number/.docs/instructions.md @@ -1,6 +1,6 @@ # Instructions -Clean up user-entered phone numbers so that they can be sent SMS messages. +Clean up phone numbers so that they can be sent SMS messages. The **North American Numbering Plan (NANP)** is a telephone numbering system used by many countries in North America like the United States, Canada or Bermuda. All NANP-countries share the same international country code: `1`. diff --git a/exercises/practice/protein-translation/.docs/instructions.md b/exercises/practice/protein-translation/.docs/instructions.md index 44880802..35c953b1 100644 --- a/exercises/practice/protein-translation/.docs/instructions.md +++ b/exercises/practice/protein-translation/.docs/instructions.md @@ -1,36 +1,17 @@ # Instructions -Translate RNA sequences into proteins. +Your job is to translate RNA sequences into proteins. -RNA can be broken into three-nucleotide sequences called codons, and then translated to a protein like so: +RNA strands are made up of three-nucleotide sequences called **codons**. +Each codon translates to an **amino acid**. +When joined together, those amino acids make a protein. -RNA: `"AUGUUUUCU"` => translates to - -Codons: `"AUG", "UUU", "UCU"` -=> which become a protein with the following sequence => - -Protein: `"Methionine", "Phenylalanine", "Serine"` - -There are 64 codons which in turn correspond to 20 amino acids; however, all of the codon sequences and resulting amino acids are not important in this exercise. -If it works for one codon, the program should work for all of them. -However, feel free to expand the list in the test suite to include them all. - -There are also three terminating codons (also known as 'STOP' codons); if any of these codons are encountered (by the ribosome), all translation ends and the protein is terminated. - -All subsequent codons after are ignored, like this: - -RNA: `"AUGUUUUCUUAAAUG"` => - -Codons: `"AUG", "UUU", "UCU", "UAA", "AUG"` => - -Protein: `"Methionine", "Phenylalanine", "Serine"` - -Note the stop codon `"UAA"` terminates the translation and the final methionine is not translated into the protein sequence. - -Below are the codons and resulting amino acids needed for the exercise. +In the real world, there are 64 codons, which in turn correspond to 20 amino acids. +However, for this exercise, you’ll only use a few of the possible 64. +They are listed below: | Codon | Amino Acid | -| :----------------- | :------------ | +| ------------------ | ------------- | | AUG | Methionine | | UUU, UUC | Phenylalanine | | UUA, UUG | Leucine | @@ -40,6 +21,18 @@ Below are the codons and resulting amino acids needed for the exercise. | UGG | Tryptophan | | UAA, UAG, UGA | STOP | +For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU” and “UCU”. +These map to Methionine, Phenylalanine, and Serine. + +## “STOP” Codons + +You’ll note from the table above that there are three **“STOP” codons**. +If you encounter any of these codons, ignore the rest of the sequence — the protein is complete. + +For example, “AUGUUUUCUUAAAUG” contains a STOP codon (“UAA”). +Once we reach that point, we stop processing. +We therefore only consider the part before it (i.e. “AUGUUUUCU”), not any further codons after it (i.e. “AUG”). + Learn more about [protein translation on Wikipedia][protein-translation]. [protein-translation]: https://en.wikipedia.org/wiki/Translation_(biology) diff --git a/exercises/practice/say/.docs/instructions.md b/exercises/practice/say/.docs/instructions.md index ad3d3477..3251c519 100644 --- a/exercises/practice/say/.docs/instructions.md +++ b/exercises/practice/say/.docs/instructions.md @@ -1,48 +1,12 @@ # Instructions -Given a number from 0 to 999,999,999,999, spell out that number in English. +Given a number, your task is to express it in English words exactly as your friend should say it out loud. +Yaʻqūb expects to use numbers from 0 up to 999,999,999,999. -## Step 1 +Examples: -Handle the basic case of 0 through 99. - -If the input to the program is `22`, then the output should be `'twenty-two'`. - -Your program should complain loudly if given a number outside the blessed range. - -Some good test cases for this program are: - -- 0 -- 14 -- 50 -- 98 -- -1 -- 100 - -### Extension - -If you're on a Mac, shell out to Mac OS X's `say` program to talk out loud. -If you're on Linux or Windows, eSpeakNG may be available with the command `espeak`. - -## Step 2 - -Implement breaking a number up into chunks of thousands. - -So `1234567890` should yield a list like 1, 234, 567, and 890, while the far simpler `1000` should yield just 1 and 0. - -## Step 3 - -Now handle inserting the appropriate scale word between those chunks. - -So `1234567890` should yield `'1 billion 234 million 567 thousand 890'` - -The program must also report any values that are out of range. -It's fine to stop at "trillion". - -## Step 4 - -Put it all together to get nothing but plain English. - -`12345` should give `twelve thousand three hundred forty-five`. - -The program must also report any values that are out of range. +- 0 → zero +- 1 → one +- 12 → twelve +- 123 → one hundred twenty-three +- 1,234 → one thousand two hundred thirty-four diff --git a/exercises/practice/say/.docs/introduction.md b/exercises/practice/say/.docs/introduction.md new file mode 100644 index 00000000..abd22851 --- /dev/null +++ b/exercises/practice/say/.docs/introduction.md @@ -0,0 +1,6 @@ +# Introduction + +Your friend Yaʻqūb works the counter at the busiest deli in town, slicing, weighing, and wrapping orders for a never-ending line of hungry customers. +To keep things moving, each customer takes a numbered ticket when they arrive. + +When it’s time to call the next person, Yaʻqūb reads their number out loud, always in full English words to make sure everyone hears it clearly. diff --git a/exercises/practice/triangle/.docs/instructions.md b/exercises/practice/triangle/.docs/instructions.md index ac390087..e9b053dc 100644 --- a/exercises/practice/triangle/.docs/instructions.md +++ b/exercises/practice/triangle/.docs/instructions.md @@ -13,6 +13,12 @@ A _scalene_ triangle has all sides of different lengths. For a shape to be a triangle at all, all sides have to be of length > 0, and the sum of the lengths of any two sides must be greater than or equal to the length of the third side. +~~~~exercism/note +_Degenerate triangles_ are triangles where the sum of the length of two sides is **equal** to the length of the third side, e.g. `1, 1, 2`. +We opted to not include tests for degenerate triangles in this exercise. +You may handle those situations if you wish to do so, or safely ignore them. +~~~~ + In equations: Let `a`, `b`, and `c` be sides of the triangle. From 864b9b2bc29c87b0f83dc5ceb527b1c86d39d195 Mon Sep 17 00:00:00 2001 From: Alexander Hans Date: Mon, 3 Nov 2025 21:24:04 +0100 Subject: [PATCH 04/16] fix: move and add back ariane-flight-v88 link (#1004) Both `introduction.md` were missing the link completely. In `about.md`, it was defined outside of the admonition it was unsed in and therefore unavailable from within the admonition. This is fixed by moving the link definition inside. --- concepts/pointers/about.md | 3 ++- concepts/pointers/introduction.md | 2 ++ exercises/concept/speedywagon/.docs/introduction.md | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/concepts/pointers/about.md b/concepts/pointers/about.md index b15f9e52..c5348a21 100644 --- a/concepts/pointers/about.md +++ b/concepts/pointers/about.md @@ -63,6 +63,8 @@ openStarGate(dialedAddress); Pointer arithmetic in C++ can easily lead to __undefined behavior__ if not handled carefully. Undefined behavior can manifest in unexpected program outcomes, crashes, or even security vulnerabilities. One infamous example of the consequences of undefined behavior occurred in the [explosion of the Ariane 5 rocket][ariane-flight-v88] in 1996, where a software exception caused by the conversion of a 64-bit floating-point number to a 16-bit signed integer led to a catastrophic failure. + +[ariane-flight-v88]: https://en.wikipedia.org/wiki/Ariane_flight_V88 ~~~~ ## Accessing member variables @@ -131,5 +133,4 @@ It is your responsibility to detect these cases and ensure those pointers are su In older code, you might encounter two alternatives to `nullptr`. Firstly, the literal `0` is specifically interpreted as a null value for pointers, though it's the only scenario where an integral literal can be assigned to a pointer. Secondly, the `preprocessor macro` `NULL`, inherited from C and defined in the `` header, is another representation of a null pointer, though its usage is less common in modern C++ code. -[ariane-flight-v88]: https://en.wikipedia.org/wiki/Ariane_flight_V88 ~~~~ diff --git a/concepts/pointers/introduction.md b/concepts/pointers/introduction.md index bca4fdbf..6db1296f 100644 --- a/concepts/pointers/introduction.md +++ b/concepts/pointers/introduction.md @@ -63,6 +63,8 @@ openStarGate(dialedAddress); Pointer arithmetic in C++ can easily lead to __undefined behavior__ if not handled carefully. Undefined behavior can manifest in unexpected program outcomes, crashes, or even security vulnerabilities. One infamous example of the consequences of undefined behavior occurred in the [explosion of the Ariane 5 rocket][ariane-flight-v88] in 1996, where a software exception caused by the conversion of a 64-bit floating-point number to a 16-bit signed integer led to a catastrophic failure. + +[ariane-flight-v88]: https://en.wikipedia.org/wiki/Ariane_flight_V88 ~~~~ ## Accessing member variables diff --git a/exercises/concept/speedywagon/.docs/introduction.md b/exercises/concept/speedywagon/.docs/introduction.md index b11092d5..94297f94 100644 --- a/exercises/concept/speedywagon/.docs/introduction.md +++ b/exercises/concept/speedywagon/.docs/introduction.md @@ -63,6 +63,8 @@ openStarGate(dialedAddress); Pointer arithmetic in C++ can easily lead to __undefined behavior__ if not handled carefully. Undefined behavior can manifest in unexpected program outcomes, crashes, or even security vulnerabilities. One infamous example of the consequences of undefined behavior occurred in the [explosion of the Ariane 5 rocket][ariane-flight-v88] in 1996, where a software exception caused by the conversion of a 64-bit floating-point number to a 16-bit signed integer led to a catastrophic failure. + +[ariane-flight-v88]: https://en.wikipedia.org/wiki/Ariane_flight_V88 ~~~~ ## Accessing member variables From 8a51b81de401eb98b3b0f03ee908e3ab556489a0 Mon Sep 17 00:00:00 2001 From: Christian Willner <34183939+vaeng@users.noreply.github.com> Date: Wed, 3 Dec 2025 14:54:37 +0100 Subject: [PATCH 05/16] docs: fix doctor data error (#1007) --- exercises/concept/doctor-data/.docs/instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/doctor-data/.docs/instructions.md b/exercises/concept/doctor-data/.docs/instructions.md index 8fc8b514..52ae5f14 100644 --- a/exercises/concept/doctor-data/.docs/instructions.md +++ b/exercises/concept/doctor-data/.docs/instructions.md @@ -38,7 +38,7 @@ You even got one of the enumerations: `BetaHydri`. Prepare the source and header files with your discovered information. You need two namespaces: `heaven` and `star_map`. The `heaven` namespace has a class `Vessel`, which can be called with two or three arguments. -The `System` enum is to be placed in the `star_map` namespace and has an `EpsilonEridani` enumeration. +The `System` enum is to be placed in the `star_map` namespace and has an `BetaHydri` enumeration. Keep an eye out for other enumerations, so that you can constantly update the `System` enum. ## 2. Find more details From 5d1fd26614d387a773ad51549864a3258f889377 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 5 Dec 2025 13:14:33 +0100 Subject: [PATCH 06/16] build(deps): bump actions/checkout from 5.0.0 to 6.0.0 (#1006) Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/08c6903cd8c0fde910a37f88322edcfb5dd907a8...1af3b93b6815bc44a9784bd300feb67ff0d1eeb3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/hello-world.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c77be47a..f5c55cbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: matrix: compiler: [clang++-15, g++-12] steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 - name: Install Dependencies # Boost must be installed only because the CMake version (3.12) can't # detect the installed Boost version (1.69) @@ -37,7 +37,7 @@ jobs: matrix: compiler: [clang++, g++] steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 - name: Install Dependencies # Boost must be installed only because the CMake version (3.12) can't # detect the installed Boost version (1.69) @@ -64,7 +64,7 @@ jobs: needs: [linux-min] runs-on: windows-2022 steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 - name: Run Tests shell: powershell # Delete the exercises that require Boost to avoid issues with Windows setup. @@ -80,7 +80,7 @@ jobs: needs: [linux-min] runs-on: macOS-latest steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 - name: Install Boost run: brew install boost - name: Run Tests diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index e96bc3e7..5207f9d2 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -21,7 +21,7 @@ jobs: name: Hello World Fails runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 - name: Check Hello World Fails run: bin/check-hello-world.sh env: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 188fc218..92593a1f 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout code - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 with: ref: ${{github.event.pull_request.head.sha}} repository: ${{github.event.pull_request.head.repo.full_name}} From 07223a2f51c192070b8295123f675979861298fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Jan 2026 20:29:31 +0100 Subject: [PATCH 07/16] build(deps): bump actions/checkout from 6.0.0 to 6.0.1 (#1009) Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/1af3b93b6815bc44a9784bd300feb67ff0d1eeb3...8e8c483db84b4bee98b60c0593521ed34d9990e8) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/hello-world.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5c55cbd..ded2a262 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: matrix: compiler: [clang++-15, g++-12] steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - name: Install Dependencies # Boost must be installed only because the CMake version (3.12) can't # detect the installed Boost version (1.69) @@ -37,7 +37,7 @@ jobs: matrix: compiler: [clang++, g++] steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - name: Install Dependencies # Boost must be installed only because the CMake version (3.12) can't # detect the installed Boost version (1.69) @@ -64,7 +64,7 @@ jobs: needs: [linux-min] runs-on: windows-2022 steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - name: Run Tests shell: powershell # Delete the exercises that require Boost to avoid issues with Windows setup. @@ -80,7 +80,7 @@ jobs: needs: [linux-min] runs-on: macOS-latest steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - name: Install Boost run: brew install boost - name: Run Tests diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 5207f9d2..2d435b0c 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -21,7 +21,7 @@ jobs: name: Hello World Fails runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - name: Check Hello World Fails run: bin/check-hello-world.sh env: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 92593a1f..233ba60a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout code - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 with: ref: ${{github.event.pull_request.head.sha}} repository: ${{github.event.pull_request.head.repo.full_name}} From 5c89b6e0372ddce41c77ab6820d897f5c0da94d6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Feb 2026 22:34:43 +0100 Subject: [PATCH 08/16] build(deps): bump actions/checkout from 6.0.1 to 6.0.2 (#1010) Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/8e8c483db84b4bee98b60c0593521ed34d9990e8...de0fac2e4500dabe0009e67214ff5f5447ce83dd) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/hello-world.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ded2a262..4d124799 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: matrix: compiler: [clang++-15, g++-12] steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: Install Dependencies # Boost must be installed only because the CMake version (3.12) can't # detect the installed Boost version (1.69) @@ -37,7 +37,7 @@ jobs: matrix: compiler: [clang++, g++] steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: Install Dependencies # Boost must be installed only because the CMake version (3.12) can't # detect the installed Boost version (1.69) @@ -64,7 +64,7 @@ jobs: needs: [linux-min] runs-on: windows-2022 steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: Run Tests shell: powershell # Delete the exercises that require Boost to avoid issues with Windows setup. @@ -80,7 +80,7 @@ jobs: needs: [linux-min] runs-on: macOS-latest steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: Install Boost run: brew install boost - name: Run Tests diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 2d435b0c..fee42f64 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -21,7 +21,7 @@ jobs: name: Hello World Fails runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: Check Hello World Fails run: bin/check-hello-world.sh env: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 233ba60a..9977425e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout code - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: ref: ${{github.event.pull_request.head.sha}} repository: ${{github.event.pull_request.head.repo.full_name}} From d0d7e5d495cbf4d26ec8b8879161414accdf5200 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 15 Feb 2026 08:58:13 +0100 Subject: [PATCH 09/16] =?UTF-8?q?=F0=9F=A4=96=20Auto-sync=20docs,=20metada?= =?UTF-8?q?ta,=20and=20filepaths=20(#1011)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- exercises/practice/allergies/.meta/config.json | 2 +- exercises/practice/beer-song/.meta/config.json | 2 +- exercises/practice/bob/.meta/config.json | 2 +- exercises/practice/etl/.meta/config.json | 2 +- exercises/practice/gigasecond/.meta/config.json | 2 +- exercises/practice/kindergarten-garden/.meta/config.json | 2 +- exercises/practice/phone-number/.meta/config.json | 2 +- exercises/practice/pig-latin/.meta/config.json | 2 +- exercises/practice/reverse-string/.meta/config.json | 2 +- exercises/practice/space-age/.meta/config.json | 2 +- exercises/practice/triangle/.meta/config.json | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/exercises/practice/allergies/.meta/config.json b/exercises/practice/allergies/.meta/config.json index e419c99f..ebd96d1b 100644 --- a/exercises/practice/allergies/.meta/config.json +++ b/exercises/practice/allergies/.meta/config.json @@ -24,5 +24,5 @@ }, "blurb": "Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.", "source": "Exercise by the JumpstartLab team for students at The Turing School of Software and Design.", - "source_url": "https://turing.edu" + "source_url": "https://www.turing.edu/" } diff --git a/exercises/practice/beer-song/.meta/config.json b/exercises/practice/beer-song/.meta/config.json index ee328add..0f4c39f3 100644 --- a/exercises/practice/beer-song/.meta/config.json +++ b/exercises/practice/beer-song/.meta/config.json @@ -25,5 +25,5 @@ }, "blurb": "Produce the lyrics to that beloved classic, that field-trip favorite: 99 Bottles of Beer on the Wall.", "source": "Learn to Program by Chris Pine", - "source_url": "https://pine.fm/LearnToProgram/?Chapter=06" + "source_url": "https://pine.fm/LearnToProgram/chap_06.html" } diff --git a/exercises/practice/bob/.meta/config.json b/exercises/practice/bob/.meta/config.json index 63e2423b..7882c82b 100644 --- a/exercises/practice/bob/.meta/config.json +++ b/exercises/practice/bob/.meta/config.json @@ -28,5 +28,5 @@ }, "blurb": "Bob is a lackadaisical teenager. In conversation, his responses are very limited.", "source": "Inspired by the 'Deaf Grandma' exercise in Chris Pine's Learn to Program tutorial.", - "source_url": "https://pine.fm/LearnToProgram/?Chapter=06" + "source_url": "https://pine.fm/LearnToProgram/chap_06.html" } diff --git a/exercises/practice/etl/.meta/config.json b/exercises/practice/etl/.meta/config.json index d89ecf97..a3d9c63f 100644 --- a/exercises/practice/etl/.meta/config.json +++ b/exercises/practice/etl/.meta/config.json @@ -26,5 +26,5 @@ }, "blurb": "Change the data format for scoring a game to more easily add other languages.", "source": "Based on an exercise by the JumpstartLab team for students at The Turing School of Software and Design.", - "source_url": "https://turing.edu" + "source_url": "https://www.turing.edu/" } diff --git a/exercises/practice/gigasecond/.meta/config.json b/exercises/practice/gigasecond/.meta/config.json index 736e8648..d44dd3c5 100644 --- a/exercises/practice/gigasecond/.meta/config.json +++ b/exercises/practice/gigasecond/.meta/config.json @@ -26,5 +26,5 @@ }, "blurb": "Given a moment, determine the moment that would be after a gigasecond has passed.", "source": "Chapter 9 in Chris Pine's online Learn to Program tutorial.", - "source_url": "https://pine.fm/LearnToProgram/?Chapter=09" + "source_url": "https://pine.fm/LearnToProgram/chap_09.html" } diff --git a/exercises/practice/kindergarten-garden/.meta/config.json b/exercises/practice/kindergarten-garden/.meta/config.json index c0a8d1fd..1225fd3b 100644 --- a/exercises/practice/kindergarten-garden/.meta/config.json +++ b/exercises/practice/kindergarten-garden/.meta/config.json @@ -17,5 +17,5 @@ }, "blurb": "Given a diagram, determine which plants each child in the kindergarten class is responsible for.", "source": "Exercise by the JumpstartLab team for students at The Turing School of Software and Design.", - "source_url": "https://turing.edu" + "source_url": "https://www.turing.edu/" } diff --git a/exercises/practice/phone-number/.meta/config.json b/exercises/practice/phone-number/.meta/config.json index bc99a7aa..35265d85 100644 --- a/exercises/practice/phone-number/.meta/config.json +++ b/exercises/practice/phone-number/.meta/config.json @@ -26,5 +26,5 @@ }, "blurb": "Clean up user-entered phone numbers so that they can be sent SMS messages.", "source": "Exercise by the JumpstartLab team for students at The Turing School of Software and Design.", - "source_url": "https://turing.edu" + "source_url": "https://www.turing.edu/" } diff --git a/exercises/practice/pig-latin/.meta/config.json b/exercises/practice/pig-latin/.meta/config.json index 1d40397c..d17aedc4 100644 --- a/exercises/practice/pig-latin/.meta/config.json +++ b/exercises/practice/pig-latin/.meta/config.json @@ -17,5 +17,5 @@ }, "blurb": "Implement a program that translates from English to Pig Latin.", "source": "The Pig Latin exercise at Test First Teaching by Ultrasaurus", - "source_url": "https://github.com/ultrasaurus/test-first-teaching/blob/master/learn_ruby/pig_latin/" + "source_url": "https://github.com/ultrasaurus/test-first-teaching/tree/master/learn_ruby/pig_latin" } diff --git a/exercises/practice/reverse-string/.meta/config.json b/exercises/practice/reverse-string/.meta/config.json index 8108295c..5d0b73fe 100644 --- a/exercises/practice/reverse-string/.meta/config.json +++ b/exercises/practice/reverse-string/.meta/config.json @@ -22,5 +22,5 @@ }, "blurb": "Reverse a given string.", "source": "Introductory challenge to reverse an input string", - "source_url": "https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb" + "source_url": "https://www.freecodecamp.org/news/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb" } diff --git a/exercises/practice/space-age/.meta/config.json b/exercises/practice/space-age/.meta/config.json index a23b87e5..baf27f4b 100644 --- a/exercises/practice/space-age/.meta/config.json +++ b/exercises/practice/space-age/.meta/config.json @@ -26,5 +26,5 @@ }, "blurb": "Given an age in seconds, calculate how old someone is in terms of a given planet's solar years.", "source": "Partially inspired by Chapter 1 in Chris Pine's online Learn to Program tutorial.", - "source_url": "https://pine.fm/LearnToProgram/?Chapter=01" + "source_url": "https://pine.fm/LearnToProgram/chap_01.html" } diff --git a/exercises/practice/triangle/.meta/config.json b/exercises/practice/triangle/.meta/config.json index 1a808d5c..717e5664 100644 --- a/exercises/practice/triangle/.meta/config.json +++ b/exercises/practice/triangle/.meta/config.json @@ -28,5 +28,5 @@ }, "blurb": "Determine if a triangle is equilateral, isosceles, or scalene.", "source": "The Ruby Koans triangle project, parts 1 & 2", - "source_url": "https://web.archive.org/web/20220831105330/http://rubykoans.com" + "source_url": "https://www.rubykoans.com/" } From 7d2e8e45f0530227ea05ad094dcb076a3edcc11a Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Fri, 3 Apr 2026 17:43:25 -0700 Subject: [PATCH 10/16] Upgrade workflow images from Ubuntu 22.04 to 24.04 (#1015) --- .github/workflows/format-code.yml | 2 +- .github/workflows/hello-world.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index 2270dffe..5fac99bb 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -7,7 +7,7 @@ on: jobs: format: name: "Format C++ code" - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 if: github.event.issue.pull_request != '' && (contains(github.event.comment.body, '/format') || contains(github.event.comment.body, '/clang-format')) steps: - name: "Checkout code" diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index fee42f64..a902ec69 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -19,7 +19,7 @@ on: jobs: hello-world-fails: name: Hello World Fails - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: Check Hello World Fails From 9ca0c11dabd771bfae6fe5d9c09c6dd3ac51c4b8 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Mon, 1 Jun 2026 10:53:04 -0700 Subject: [PATCH 11/16] Format all `instructions.append.md` to start with an H1 (required but ignored) and H2 (#1017) --- .../practice/simple-linked-list/.docs/instructions.append.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exercises/practice/simple-linked-list/.docs/instructions.append.md b/exercises/practice/simple-linked-list/.docs/instructions.append.md index 50f3f024..c15c1419 100644 --- a/exercises/practice/simple-linked-list/.docs/instructions.append.md +++ b/exercises/practice/simple-linked-list/.docs/instructions.append.md @@ -1,3 +1,5 @@ +# Instructions append + ## Implementation Hints We have provided the general structure of a `List` class for you. From 4a1234c1346498d85a43b7fd9398d8416e0dcc5d Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Mon, 13 Jul 2026 01:00:50 -0700 Subject: [PATCH 12/16] Remove the space in `"" _a` that makes the newer compiler sad (#1027) --- exercises/concept/doctor-data/test/catch.hpp | 8 ++++---- exercises/concept/election-day/test/catch.hpp | 8 ++++---- exercises/concept/ellens-alien-game/test/catch.hpp | 8 ++++---- exercises/concept/freelancer-rates/test/catch.hpp | 8 ++++---- exercises/concept/interest-is-interesting/test/catch.hpp | 8 ++++---- exercises/concept/lasagna-master/test/catch.hpp | 8 ++++---- exercises/concept/lasagna/test/catch.hpp | 8 ++++---- exercises/concept/last-will/test/catch.hpp | 8 ++++---- exercises/concept/log-levels/test/catch.hpp | 8 ++++---- exercises/concept/making-the-grade/test/catch.hpp | 8 ++++---- exercises/concept/pacman-rules/test/catch.hpp | 8 ++++---- exercises/concept/power-of-troy/test/catch.hpp | 8 ++++---- exercises/concept/speedywagon/test/catch.hpp | 8 ++++---- exercises/concept/troll-the-trolls/test/catch.hpp | 8 ++++---- exercises/concept/vehicle-purchase/test/catch.hpp | 8 ++++---- exercises/practice/acronym/test/catch.hpp | 8 ++++---- exercises/practice/affine-cipher/test/catch.hpp | 8 ++++---- exercises/practice/all-your-base/test/catch.hpp | 8 ++++---- exercises/practice/allergies/test/catch.hpp | 8 ++++---- exercises/practice/alphametics/test/catch.hpp | 8 ++++---- exercises/practice/anagram/test/catch.hpp | 8 ++++---- exercises/practice/armstrong-numbers/test/catch.hpp | 8 ++++---- exercises/practice/atbash-cipher/test/catch.hpp | 8 ++++---- exercises/practice/bank-account/test/catch.hpp | 8 ++++---- exercises/practice/beer-song/test/catch.hpp | 8 ++++---- exercises/practice/binary-search-tree/test/catch.hpp | 8 ++++---- exercises/practice/binary-search/test/catch.hpp | 8 ++++---- exercises/practice/binary/test/catch.hpp | 8 ++++---- exercises/practice/bob/test/catch.hpp | 8 ++++---- exercises/practice/circular-buffer/test/catch.hpp | 8 ++++---- exercises/practice/clock/test/catch.hpp | 8 ++++---- exercises/practice/collatz-conjecture/test/catch.hpp | 8 ++++---- .../practice/complex-numbers/test/catch_amalgamated.cpp | 4 ++-- exercises/practice/crypto-square/test/catch.hpp | 8 ++++---- exercises/practice/darts/test/catch.hpp | 8 ++++---- exercises/practice/diamond/test/catch.hpp | 8 ++++---- exercises/practice/difference-of-squares/test/catch.hpp | 8 ++++---- exercises/practice/dnd-character/test/catch.hpp | 8 ++++---- exercises/practice/eliuds-eggs/test/catch.hpp | 8 ++++---- exercises/practice/etl/test/catch.hpp | 8 ++++---- exercises/practice/flower-field/test/catch.hpp | 8 ++++---- exercises/practice/food-chain/test/catch.hpp | 8 ++++---- exercises/practice/gigasecond/test/catch.hpp | 8 ++++---- exercises/practice/grade-school/test/catch.hpp | 8 ++++---- exercises/practice/grains/test/catch.hpp | 8 ++++---- exercises/practice/hamming/test/catch.hpp | 8 ++++---- exercises/practice/hello-world/test/catch.hpp | 8 ++++---- exercises/practice/hexadecimal/test/catch.hpp | 8 ++++---- exercises/practice/high-scores/test/catch.hpp | 8 ++++---- exercises/practice/isbn-verifier/test/catch.hpp | 8 ++++---- exercises/practice/isogram/test/catch.hpp | 8 ++++---- exercises/practice/kindergarten-garden/test/catch.hpp | 8 ++++---- exercises/practice/knapsack/test/catch.hpp | 8 ++++---- exercises/practice/largest-series-product/test/catch.hpp | 8 ++++---- exercises/practice/leap/test/catch.hpp | 8 ++++---- exercises/practice/linked-list/test/catch.hpp | 8 ++++---- exercises/practice/list-ops/test/catch.hpp | 8 ++++---- exercises/practice/luhn/test/catch.hpp | 8 ++++---- exercises/practice/matching-brackets/test/catch.hpp | 8 ++++---- exercises/practice/meetup/test/catch.hpp | 8 ++++---- exercises/practice/minesweeper/test/catch.hpp | 8 ++++---- exercises/practice/nth-prime/test/catch.hpp | 8 ++++---- exercises/practice/nucleotide-count/test/catch.hpp | 8 ++++---- exercises/practice/pangram/test/catch.hpp | 8 ++++---- .../practice/parallel-letter-frequency/test/catch.hpp | 8 ++++---- exercises/practice/pascals-triangle/test/catch.hpp | 8 ++++---- exercises/practice/perfect-numbers/test/catch.hpp | 8 ++++---- exercises/practice/phone-number/test/catch.hpp | 8 ++++---- exercises/practice/pig-latin/test/catch.hpp | 8 ++++---- exercises/practice/prime-factors/test/catch.hpp | 8 ++++---- exercises/practice/protein-translation/test/catch.hpp | 8 ++++---- exercises/practice/queen-attack/test/catch.hpp | 8 ++++---- exercises/practice/rail-fence-cipher/test/catch.hpp | 8 ++++---- exercises/practice/raindrops/test/catch.hpp | 8 ++++---- exercises/practice/resistor-color-duo/test/catch.hpp | 8 ++++---- exercises/practice/resistor-color/test/catch.hpp | 8 ++++---- exercises/practice/reverse-string/test/catch.hpp | 8 ++++---- exercises/practice/rna-transcription/test/catch.hpp | 8 ++++---- exercises/practice/robot-name/test/catch.hpp | 8 ++++---- exercises/practice/robot-simulator/test/catch.hpp | 8 ++++---- exercises/practice/roman-numerals/test/catch.hpp | 8 ++++---- exercises/practice/rotational-cipher/test/catch.hpp | 8 ++++---- exercises/practice/run-length-encoding/test/catch.hpp | 8 ++++---- exercises/practice/say/test/catch.hpp | 8 ++++---- exercises/practice/scrabble-score/test/catch.hpp | 8 ++++---- exercises/practice/secret-handshake/test/catch.hpp | 8 ++++---- exercises/practice/series/test/catch.hpp | 8 ++++---- exercises/practice/sieve/test/catch.hpp | 8 ++++---- exercises/practice/simple-linked-list/test/catch.hpp | 8 ++++---- exercises/practice/space-age/test/catch.hpp | 8 ++++---- exercises/practice/spiral-matrix/test/catch.hpp | 8 ++++---- exercises/practice/sublist/test/catch.hpp | 8 ++++---- exercises/practice/sum-of-multiples/test/catch.hpp | 8 ++++---- exercises/practice/triangle/test/catch.hpp | 8 ++++---- exercises/practice/trinary/test/catch.hpp | 8 ++++---- exercises/practice/twelve-days/test/catch.hpp | 8 ++++---- exercises/practice/two-bucket/test/catch.hpp | 8 ++++---- exercises/practice/two-fer/test/catch.hpp | 8 ++++---- exercises/practice/word-count/test/catch.hpp | 8 ++++---- exercises/practice/yacht/test/catch.hpp | 8 ++++---- exercises/practice/zebra-puzzle/test/catch.hpp | 8 ++++---- test/catch.hpp | 8 ++++---- 102 files changed, 406 insertions(+), 406 deletions(-) diff --git a/exercises/concept/doctor-data/test/catch.hpp b/exercises/concept/doctor-data/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/doctor-data/test/catch.hpp +++ b/exercises/concept/doctor-data/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/election-day/test/catch.hpp b/exercises/concept/election-day/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/election-day/test/catch.hpp +++ b/exercises/concept/election-day/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/ellens-alien-game/test/catch.hpp b/exercises/concept/ellens-alien-game/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/ellens-alien-game/test/catch.hpp +++ b/exercises/concept/ellens-alien-game/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/freelancer-rates/test/catch.hpp b/exercises/concept/freelancer-rates/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/freelancer-rates/test/catch.hpp +++ b/exercises/concept/freelancer-rates/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/interest-is-interesting/test/catch.hpp b/exercises/concept/interest-is-interesting/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/interest-is-interesting/test/catch.hpp +++ b/exercises/concept/interest-is-interesting/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/lasagna-master/test/catch.hpp b/exercises/concept/lasagna-master/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/lasagna-master/test/catch.hpp +++ b/exercises/concept/lasagna-master/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/lasagna/test/catch.hpp b/exercises/concept/lasagna/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/lasagna/test/catch.hpp +++ b/exercises/concept/lasagna/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/last-will/test/catch.hpp b/exercises/concept/last-will/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/last-will/test/catch.hpp +++ b/exercises/concept/last-will/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/log-levels/test/catch.hpp b/exercises/concept/log-levels/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/log-levels/test/catch.hpp +++ b/exercises/concept/log-levels/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/making-the-grade/test/catch.hpp b/exercises/concept/making-the-grade/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/making-the-grade/test/catch.hpp +++ b/exercises/concept/making-the-grade/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/pacman-rules/test/catch.hpp b/exercises/concept/pacman-rules/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/pacman-rules/test/catch.hpp +++ b/exercises/concept/pacman-rules/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/power-of-troy/test/catch.hpp b/exercises/concept/power-of-troy/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/power-of-troy/test/catch.hpp +++ b/exercises/concept/power-of-troy/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/speedywagon/test/catch.hpp b/exercises/concept/speedywagon/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/speedywagon/test/catch.hpp +++ b/exercises/concept/speedywagon/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/troll-the-trolls/test/catch.hpp b/exercises/concept/troll-the-trolls/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/troll-the-trolls/test/catch.hpp +++ b/exercises/concept/troll-the-trolls/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/concept/vehicle-purchase/test/catch.hpp b/exercises/concept/vehicle-purchase/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/concept/vehicle-purchase/test/catch.hpp +++ b/exercises/concept/vehicle-purchase/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/acronym/test/catch.hpp b/exercises/practice/acronym/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/acronym/test/catch.hpp +++ b/exercises/practice/acronym/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/affine-cipher/test/catch.hpp b/exercises/practice/affine-cipher/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/affine-cipher/test/catch.hpp +++ b/exercises/practice/affine-cipher/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/all-your-base/test/catch.hpp b/exercises/practice/all-your-base/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/all-your-base/test/catch.hpp +++ b/exercises/practice/all-your-base/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/allergies/test/catch.hpp b/exercises/practice/allergies/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/allergies/test/catch.hpp +++ b/exercises/practice/allergies/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/alphametics/test/catch.hpp b/exercises/practice/alphametics/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/alphametics/test/catch.hpp +++ b/exercises/practice/alphametics/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/anagram/test/catch.hpp b/exercises/practice/anagram/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/anagram/test/catch.hpp +++ b/exercises/practice/anagram/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/armstrong-numbers/test/catch.hpp b/exercises/practice/armstrong-numbers/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/armstrong-numbers/test/catch.hpp +++ b/exercises/practice/armstrong-numbers/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/atbash-cipher/test/catch.hpp b/exercises/practice/atbash-cipher/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/atbash-cipher/test/catch.hpp +++ b/exercises/practice/atbash-cipher/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/bank-account/test/catch.hpp b/exercises/practice/bank-account/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/bank-account/test/catch.hpp +++ b/exercises/practice/bank-account/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/beer-song/test/catch.hpp b/exercises/practice/beer-song/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/beer-song/test/catch.hpp +++ b/exercises/practice/beer-song/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/binary-search-tree/test/catch.hpp b/exercises/practice/binary-search-tree/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/binary-search-tree/test/catch.hpp +++ b/exercises/practice/binary-search-tree/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/binary-search/test/catch.hpp b/exercises/practice/binary-search/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/binary-search/test/catch.hpp +++ b/exercises/practice/binary-search/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/binary/test/catch.hpp b/exercises/practice/binary/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/binary/test/catch.hpp +++ b/exercises/practice/binary/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/bob/test/catch.hpp b/exercises/practice/bob/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/bob/test/catch.hpp +++ b/exercises/practice/bob/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/circular-buffer/test/catch.hpp b/exercises/practice/circular-buffer/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/circular-buffer/test/catch.hpp +++ b/exercises/practice/circular-buffer/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/clock/test/catch.hpp b/exercises/practice/clock/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/clock/test/catch.hpp +++ b/exercises/practice/clock/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/collatz-conjecture/test/catch.hpp b/exercises/practice/collatz-conjecture/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/collatz-conjecture/test/catch.hpp +++ b/exercises/practice/collatz-conjecture/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/complex-numbers/test/catch_amalgamated.cpp b/exercises/practice/complex-numbers/test/catch_amalgamated.cpp index eba3f00a..b48af905 100644 --- a/exercises/practice/complex-numbers/test/catch_amalgamated.cpp +++ b/exercises/practice/complex-numbers/test/catch_amalgamated.cpp @@ -468,10 +468,10 @@ namespace Catch { } namespace literals { - Approx operator "" _a(long double val) { + Approx operator ""_a(long double val) { return Approx(val); } - Approx operator "" _a(unsigned long long val) { + Approx operator ""_a(unsigned long long val) { return Approx(val); } } // end namespace literals diff --git a/exercises/practice/crypto-square/test/catch.hpp b/exercises/practice/crypto-square/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/crypto-square/test/catch.hpp +++ b/exercises/practice/crypto-square/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/darts/test/catch.hpp b/exercises/practice/darts/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/darts/test/catch.hpp +++ b/exercises/practice/darts/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/diamond/test/catch.hpp b/exercises/practice/diamond/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/diamond/test/catch.hpp +++ b/exercises/practice/diamond/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/difference-of-squares/test/catch.hpp b/exercises/practice/difference-of-squares/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/difference-of-squares/test/catch.hpp +++ b/exercises/practice/difference-of-squares/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/dnd-character/test/catch.hpp b/exercises/practice/dnd-character/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/dnd-character/test/catch.hpp +++ b/exercises/practice/dnd-character/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/eliuds-eggs/test/catch.hpp b/exercises/practice/eliuds-eggs/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/eliuds-eggs/test/catch.hpp +++ b/exercises/practice/eliuds-eggs/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/etl/test/catch.hpp b/exercises/practice/etl/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/etl/test/catch.hpp +++ b/exercises/practice/etl/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/flower-field/test/catch.hpp b/exercises/practice/flower-field/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/flower-field/test/catch.hpp +++ b/exercises/practice/flower-field/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/food-chain/test/catch.hpp b/exercises/practice/food-chain/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/food-chain/test/catch.hpp +++ b/exercises/practice/food-chain/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/gigasecond/test/catch.hpp b/exercises/practice/gigasecond/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/gigasecond/test/catch.hpp +++ b/exercises/practice/gigasecond/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/grade-school/test/catch.hpp b/exercises/practice/grade-school/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/grade-school/test/catch.hpp +++ b/exercises/practice/grade-school/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/grains/test/catch.hpp b/exercises/practice/grains/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/grains/test/catch.hpp +++ b/exercises/practice/grains/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/hamming/test/catch.hpp b/exercises/practice/hamming/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/hamming/test/catch.hpp +++ b/exercises/practice/hamming/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/hello-world/test/catch.hpp b/exercises/practice/hello-world/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/hello-world/test/catch.hpp +++ b/exercises/practice/hello-world/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/hexadecimal/test/catch.hpp b/exercises/practice/hexadecimal/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/hexadecimal/test/catch.hpp +++ b/exercises/practice/hexadecimal/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/high-scores/test/catch.hpp b/exercises/practice/high-scores/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/high-scores/test/catch.hpp +++ b/exercises/practice/high-scores/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/isbn-verifier/test/catch.hpp b/exercises/practice/isbn-verifier/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/isbn-verifier/test/catch.hpp +++ b/exercises/practice/isbn-verifier/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/isogram/test/catch.hpp b/exercises/practice/isogram/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/isogram/test/catch.hpp +++ b/exercises/practice/isogram/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/kindergarten-garden/test/catch.hpp b/exercises/practice/kindergarten-garden/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/kindergarten-garden/test/catch.hpp +++ b/exercises/practice/kindergarten-garden/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/knapsack/test/catch.hpp b/exercises/practice/knapsack/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/knapsack/test/catch.hpp +++ b/exercises/practice/knapsack/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/largest-series-product/test/catch.hpp b/exercises/practice/largest-series-product/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/largest-series-product/test/catch.hpp +++ b/exercises/practice/largest-series-product/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/leap/test/catch.hpp b/exercises/practice/leap/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/leap/test/catch.hpp +++ b/exercises/practice/leap/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/linked-list/test/catch.hpp b/exercises/practice/linked-list/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/linked-list/test/catch.hpp +++ b/exercises/practice/linked-list/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/list-ops/test/catch.hpp b/exercises/practice/list-ops/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/list-ops/test/catch.hpp +++ b/exercises/practice/list-ops/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/luhn/test/catch.hpp b/exercises/practice/luhn/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/luhn/test/catch.hpp +++ b/exercises/practice/luhn/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/matching-brackets/test/catch.hpp b/exercises/practice/matching-brackets/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/matching-brackets/test/catch.hpp +++ b/exercises/practice/matching-brackets/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/meetup/test/catch.hpp b/exercises/practice/meetup/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/meetup/test/catch.hpp +++ b/exercises/practice/meetup/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/minesweeper/test/catch.hpp b/exercises/practice/minesweeper/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/minesweeper/test/catch.hpp +++ b/exercises/practice/minesweeper/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/nth-prime/test/catch.hpp b/exercises/practice/nth-prime/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/nth-prime/test/catch.hpp +++ b/exercises/practice/nth-prime/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/nucleotide-count/test/catch.hpp b/exercises/practice/nucleotide-count/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/nucleotide-count/test/catch.hpp +++ b/exercises/practice/nucleotide-count/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/pangram/test/catch.hpp b/exercises/practice/pangram/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/pangram/test/catch.hpp +++ b/exercises/practice/pangram/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/parallel-letter-frequency/test/catch.hpp b/exercises/practice/parallel-letter-frequency/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/parallel-letter-frequency/test/catch.hpp +++ b/exercises/practice/parallel-letter-frequency/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/pascals-triangle/test/catch.hpp b/exercises/practice/pascals-triangle/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/pascals-triangle/test/catch.hpp +++ b/exercises/practice/pascals-triangle/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/perfect-numbers/test/catch.hpp b/exercises/practice/perfect-numbers/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/perfect-numbers/test/catch.hpp +++ b/exercises/practice/perfect-numbers/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/phone-number/test/catch.hpp b/exercises/practice/phone-number/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/phone-number/test/catch.hpp +++ b/exercises/practice/phone-number/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/pig-latin/test/catch.hpp b/exercises/practice/pig-latin/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/pig-latin/test/catch.hpp +++ b/exercises/practice/pig-latin/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/prime-factors/test/catch.hpp b/exercises/practice/prime-factors/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/prime-factors/test/catch.hpp +++ b/exercises/practice/prime-factors/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/protein-translation/test/catch.hpp b/exercises/practice/protein-translation/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/protein-translation/test/catch.hpp +++ b/exercises/practice/protein-translation/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/queen-attack/test/catch.hpp b/exercises/practice/queen-attack/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/queen-attack/test/catch.hpp +++ b/exercises/practice/queen-attack/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/rail-fence-cipher/test/catch.hpp b/exercises/practice/rail-fence-cipher/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/rail-fence-cipher/test/catch.hpp +++ b/exercises/practice/rail-fence-cipher/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/raindrops/test/catch.hpp b/exercises/practice/raindrops/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/raindrops/test/catch.hpp +++ b/exercises/practice/raindrops/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/resistor-color-duo/test/catch.hpp b/exercises/practice/resistor-color-duo/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/resistor-color-duo/test/catch.hpp +++ b/exercises/practice/resistor-color-duo/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/resistor-color/test/catch.hpp b/exercises/practice/resistor-color/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/resistor-color/test/catch.hpp +++ b/exercises/practice/resistor-color/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/reverse-string/test/catch.hpp b/exercises/practice/reverse-string/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/reverse-string/test/catch.hpp +++ b/exercises/practice/reverse-string/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/rna-transcription/test/catch.hpp b/exercises/practice/rna-transcription/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/rna-transcription/test/catch.hpp +++ b/exercises/practice/rna-transcription/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/robot-name/test/catch.hpp b/exercises/practice/robot-name/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/robot-name/test/catch.hpp +++ b/exercises/practice/robot-name/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/robot-simulator/test/catch.hpp b/exercises/practice/robot-simulator/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/robot-simulator/test/catch.hpp +++ b/exercises/practice/robot-simulator/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/roman-numerals/test/catch.hpp b/exercises/practice/roman-numerals/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/roman-numerals/test/catch.hpp +++ b/exercises/practice/roman-numerals/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/rotational-cipher/test/catch.hpp b/exercises/practice/rotational-cipher/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/rotational-cipher/test/catch.hpp +++ b/exercises/practice/rotational-cipher/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/run-length-encoding/test/catch.hpp b/exercises/practice/run-length-encoding/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/run-length-encoding/test/catch.hpp +++ b/exercises/practice/run-length-encoding/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/say/test/catch.hpp b/exercises/practice/say/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/say/test/catch.hpp +++ b/exercises/practice/say/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/scrabble-score/test/catch.hpp b/exercises/practice/scrabble-score/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/scrabble-score/test/catch.hpp +++ b/exercises/practice/scrabble-score/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/secret-handshake/test/catch.hpp b/exercises/practice/secret-handshake/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/secret-handshake/test/catch.hpp +++ b/exercises/practice/secret-handshake/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/series/test/catch.hpp b/exercises/practice/series/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/series/test/catch.hpp +++ b/exercises/practice/series/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/sieve/test/catch.hpp b/exercises/practice/sieve/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/sieve/test/catch.hpp +++ b/exercises/practice/sieve/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/simple-linked-list/test/catch.hpp b/exercises/practice/simple-linked-list/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/simple-linked-list/test/catch.hpp +++ b/exercises/practice/simple-linked-list/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/space-age/test/catch.hpp b/exercises/practice/space-age/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/space-age/test/catch.hpp +++ b/exercises/practice/space-age/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/spiral-matrix/test/catch.hpp b/exercises/practice/spiral-matrix/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/spiral-matrix/test/catch.hpp +++ b/exercises/practice/spiral-matrix/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/sublist/test/catch.hpp b/exercises/practice/sublist/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/sublist/test/catch.hpp +++ b/exercises/practice/sublist/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/sum-of-multiples/test/catch.hpp b/exercises/practice/sum-of-multiples/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/sum-of-multiples/test/catch.hpp +++ b/exercises/practice/sum-of-multiples/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/triangle/test/catch.hpp b/exercises/practice/triangle/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/triangle/test/catch.hpp +++ b/exercises/practice/triangle/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/trinary/test/catch.hpp b/exercises/practice/trinary/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/trinary/test/catch.hpp +++ b/exercises/practice/trinary/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/twelve-days/test/catch.hpp b/exercises/practice/twelve-days/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/twelve-days/test/catch.hpp +++ b/exercises/practice/twelve-days/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/two-bucket/test/catch.hpp b/exercises/practice/two-bucket/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/two-bucket/test/catch.hpp +++ b/exercises/practice/two-bucket/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/two-fer/test/catch.hpp b/exercises/practice/two-fer/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/two-fer/test/catch.hpp +++ b/exercises/practice/two-fer/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/word-count/test/catch.hpp b/exercises/practice/word-count/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/word-count/test/catch.hpp +++ b/exercises/practice/word-count/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/yacht/test/catch.hpp b/exercises/practice/yacht/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/yacht/test/catch.hpp +++ b/exercises/practice/yacht/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/exercises/practice/zebra-puzzle/test/catch.hpp b/exercises/practice/zebra-puzzle/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/exercises/practice/zebra-puzzle/test/catch.hpp +++ b/exercises/practice/zebra-puzzle/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals diff --git a/test/catch.hpp b/test/catch.hpp index 36eaeb27..ff40b4fd 100644 --- a/test/catch.hpp +++ b/test/catch.hpp @@ -3175,8 +3175,8 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val); - Detail::Approx operator "" _a(unsigned long long val); + Detail::Approx operator ""_a(long double val); + Detail::Approx operator ""_a(unsigned long long val); } // end namespace literals template<> @@ -7911,10 +7911,10 @@ namespace Detail { } // end namespace Detail namespace literals { - Detail::Approx operator "" _a(long double val) { + Detail::Approx operator ""_a(long double val) { return Detail::Approx(val); } - Detail::Approx operator "" _a(unsigned long long val) { + Detail::Approx operator ""_a(unsigned long long val) { return Detail::Approx(val); } } // end namespace literals From d2babb2bd750c884abf86ce52dde274ae7de9749 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Mon, 13 Jul 2026 01:01:28 -0700 Subject: [PATCH 13/16] Bump GHA Ubuntu workflow runners to Ubuntu 26.04 (#1026) --- .github/workflows/ci.yml | 2 +- .github/workflows/pre-commit.yml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d124799..d8f032b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: linux-latest: name: Linux Latest Config needs: [linux-min] - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 strategy: matrix: compiler: [clang++, g++] diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9977425e..23073f5a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,7 +11,7 @@ on: jobs: pre-commit: name: Pre-commit checks - runs-on: ubuntu-22.04 + runs-on: ubuntu-26.04 steps: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd @@ -20,7 +20,5 @@ jobs: repository: ${{github.event.pull_request.head.repo.full_name}} - name: Set up Python uses: actions/setup-python@v6 - with: - python-version: "3.10" - name: Run pre-commit checks on PR uses: pre-commit/action@v3.0.1 From 5618f2ba3f18a5dbae0b8888e7cbb151978e11ab Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 09:34:44 +0200 Subject: [PATCH 14/16] =?UTF-8?q?=F0=9F=A4=96=20Auto-sync=20docs,=20metada?= =?UTF-8?q?ta,=20and=20filepaths=20(#1021)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- exercises/practice/anagram/.meta/config.json | 2 +- exercises/practice/isogram/.meta/config.json | 2 +- exercises/practice/pangram/.meta/config.json | 2 +- exercises/practice/sublist/.meta/config.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/practice/anagram/.meta/config.json b/exercises/practice/anagram/.meta/config.json index 20a59ffc..4b7581e0 100644 --- a/exercises/practice/anagram/.meta/config.json +++ b/exercises/practice/anagram/.meta/config.json @@ -25,7 +25,7 @@ ".meta/example.h" ] }, - "blurb": "Given a word and a list of possible anagrams, select the correct sublist.", + "blurb": "Find the words that use the same letters as another word.", "source": "Inspired by the Extreme Startup game", "source_url": "https://github.com/rchatley/extreme_startup" } diff --git a/exercises/practice/isogram/.meta/config.json b/exercises/practice/isogram/.meta/config.json index edc754c1..7215852a 100644 --- a/exercises/practice/isogram/.meta/config.json +++ b/exercises/practice/isogram/.meta/config.json @@ -20,7 +20,7 @@ ".meta/example.h" ] }, - "blurb": "Determine if a word or phrase is an isogram.", + "blurb": "Determine whether a phrase is an isogram, a word with no repeated letters.", "source": "Wikipedia", "source_url": "https://en.wikipedia.org/wiki/Isogram" } diff --git a/exercises/practice/pangram/.meta/config.json b/exercises/practice/pangram/.meta/config.json index a788744c..699fcd01 100644 --- a/exercises/practice/pangram/.meta/config.json +++ b/exercises/practice/pangram/.meta/config.json @@ -22,7 +22,7 @@ ".meta/example.h" ] }, - "blurb": "Determine if a sentence is a pangram.", + "blurb": "Determine whether a phrase uses every letter in the Latin alphabet.", "source": "Wikipedia", "source_url": "https://en.wikipedia.org/wiki/Pangram" } diff --git a/exercises/practice/sublist/.meta/config.json b/exercises/practice/sublist/.meta/config.json index ff3fe2fa..455402a4 100644 --- a/exercises/practice/sublist/.meta/config.json +++ b/exercises/practice/sublist/.meta/config.json @@ -15,5 +15,5 @@ ".meta/example.h" ] }, - "blurb": "Write a function to determine if a list is a sublist of another list." + "blurb": "Determine if a list is a sublist of another list." } From 977a6d270edec666acc0209e525e9942d2076722 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 09:35:06 +0200 Subject: [PATCH 15/16] build(deps): bump actions/setup-python from 6 to 7 (#1031) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 23073f5a..498b7f78 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -19,6 +19,6 @@ jobs: ref: ${{github.event.pull_request.head.sha}} repository: ${{github.event.pull_request.head.repo.full_name}} - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 - name: Run pre-commit checks on PR uses: pre-commit/action@v3.0.1 From 413b80a9b94089e4588c50500b8553a59c48cda8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 09:35:45 +0200 Subject: [PATCH 16/16] build(deps): bump actions/checkout from 6.0.2 to 7.0.1 (#1030) Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...3d3c42e5aac5ba805825da76410c181273ba90b1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/hello-world.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8f032b1..86763952 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: matrix: compiler: [clang++-15, g++-12] steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - name: Install Dependencies # Boost must be installed only because the CMake version (3.12) can't # detect the installed Boost version (1.69) @@ -37,7 +37,7 @@ jobs: matrix: compiler: [clang++, g++] steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - name: Install Dependencies # Boost must be installed only because the CMake version (3.12) can't # detect the installed Boost version (1.69) @@ -64,7 +64,7 @@ jobs: needs: [linux-min] runs-on: windows-2022 steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - name: Run Tests shell: powershell # Delete the exercises that require Boost to avoid issues with Windows setup. @@ -80,7 +80,7 @@ jobs: needs: [linux-min] runs-on: macOS-latest steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - name: Install Boost run: brew install boost - name: Run Tests diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index a902ec69..e75d287e 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -21,7 +21,7 @@ jobs: name: Hello World Fails runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - name: Check Hello World Fails run: bin/check-hello-world.sh env: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 498b7f78..777d3396 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-26.04 steps: - name: Checkout code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with: ref: ${{github.event.pull_request.head.sha}} repository: ${{github.event.pull_request.head.repo.full_name}}