From 623afa7a1e132183aa2594b66f3b7260c532571e Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent <vincent.rouvreau@inria.fr> Date: Mon, 10 May 2021 15:31:10 +0200 Subject: [PATCH] missing coliru link and some typo --- 3-Operators/3-Stream.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/3-Operators/3-Stream.ipynb b/3-Operators/3-Stream.ipynb index 77c6fc0..107153a 100644 --- a/3-Operators/3-Stream.ipynb +++ b/3-Operators/3-Stream.ipynb @@ -27,7 +27,9 @@ "\n", "However, it's even better if we could use the `<<` syntax directly, and the way to do so is to provide an overload of `operator<<`.\n", "\n", - "The recommanded way to implement it is to use under the hood a `Print(std::ostream&)` (or whatever you want to call it) under the hood:" + "The recommanded way to implement it is to use under the hood a `Print(std::ostream&)` (or whatever you want to call it):\n", + "\n", + "**Xeus-cling** issue: cling doesn't accept operator definition outside of class; please use [@Coliru](https://coliru.stacked-crooked.com/a/04f59249cce6c131)" ] }, { @@ -222,8 +224,7 @@ " std::cout << \"Invalid input!\" << std::endl;\n", " \n", " return EXIT_SUCCESS;\n", - "}\n", - "\n" + "}" ] }, { @@ -232,8 +233,7 @@ "source": [ "This code doesn't run neither in Xeus-cling (due to the operator bug) nor in [Coliru](https://coliru.stacked-crooked.com/) or [Wandbox](https://wandbox.org/) (due to limited `std::cin` support) but you may check it on a local installation.\n", "\n", - "Even then, it is not perfect: it handles correctly the case gibberish is given through std::cin, but if you put more than two blocks separated by spaces the first two ones are used and the others aren't dealt with... As I said, proper and complete handling of input stream is though!\n", - "\n" + "Even then, it is not perfect: it handles correctly the case gibberish is given through `std::cin`, but if you put more than two blocks separated by spaces the first two ones are used and the others aren't dealt with... As I said, proper and complete handling of input stream is though!" ] }, { -- GitLab