Commit 7dd7e7d3 authored by Dominik Charousset's avatar Dominik Charousset

Fix manual refs

parent 786ece05
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// This file is partially included in the manual, do not modify // This file is partially included in the manual, do not modify
// without updating the references in the *.tex files! // without updating the references in the *.tex files!
// Manual references: lines 18-50 (Actor.tex) // Manual references: lines 20-52 (Actor.tex)
#include <iostream> #include <iostream>
......
...@@ -35,7 +35,8 @@ void hello_world(event_based_actor* self, const actor& buddy) { ...@@ -35,7 +35,8 @@ void hello_world(event_based_actor* self, const actor& buddy) {
int main() { int main() {
// our CAF environment // our CAF environment
actor_system system; actor_system_config cfg;
actor_system system{cfg};
// create a new actor that calls 'mirror()' // create a new actor that calls 'mirror()'
auto mirror_actor = system.spawn(mirror); auto mirror_actor = system.spawn(mirror);
// create another actor that calls 'hello_world(mirror_actor)'; // create another actor that calls 'hello_world(mirror_actor)';
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* A very basic, interactive divider. * * A very basic, interactive divider. *
\******************************************************************************/ \******************************************************************************/
// Manual refs: 19-25, 35-48, 63-73 (MessagePassing); // Manual refs: 19-25, 35-48, 68-77 (MessagePassing);
// 19-34, 51-56 (Error) // 19-34, 50-58 (Error)
#include <iostream> #include <iostream>
...@@ -33,7 +33,7 @@ std::string to_string(math_error x) { ...@@ -33,7 +33,7 @@ std::string to_string(math_error x) {
} }
} }
using div_atom = atom_constant<atom("add")>; using div_atom = atom_constant<atom("div")>;
using divider = typed_actor<replies_to<div_atom, double, double>::with<double>>; using divider = typed_actor<replies_to<div_atom, double, double>::with<double>>;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// This file is partially included in the manual, do not modify // This file is partially included in the manual, do not modify
// without updating the references in the *.tex files! // without updating the references in the *.tex files!
// Manual references: lines 20-37, 39-51, 53-58, 62-64 (MessagePassing.tex) // Manual references: lines 20-37, 39-51, 53-64, 68-70 (MessagePassing.tex)
#include <vector> #include <vector>
#include <chrono> #include <chrono>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment