Skip to content

Commit 646ac58

Browse files
committed
Documentation related fixes.
1 parent ebfcbb6 commit 646ac58

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

dev/sample/so_5/custom_direct_mbox/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void run_intercepting_scenario()
263263
( so_5::partially_constructed_agent_ptr_t /*agent_ptr*/,
264264
so_5::mbox_t source_mbox ) -> so_5::mbox_t
265265
{
266-
return { new intercepting_mbox_t{ source_mbox, target_mbox } };
266+
return { std::make_unique< intercepting_mbox_t >( source_mbox, target_mbox ) };
267267
};
268268

269269
// Original consumer has to be created manually because we

dev/so_5/version.dox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Delivery filters for mutable messages should be set via a new method
99
so_5::agent_t::so_set_delivery_filter_for_mutable_msg().
1010

1111
A posibility to set a custom mbox as the direct mbox for an agent added.
12+
See so_5::agent_t::custom_direct_mbox_factory().
1213

1314
\section so_5__5_7_3 5.7.3 "Cotopaxi"
1415

dev/test/so_5/mbox/custom_direct_mbox_factory/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ class a_test_t : public so_5::agent_t
152152
custom_direct_mbox_factory(
153153
[&protocol](
154154
so_5::partially_constructed_agent_ptr_t,
155-
so_5::mbox_t actual_mbox )
155+
so_5::mbox_t actual_mbox ) -> so_5::mbox_t
156156
{
157-
return so_5::mbox_t{ new test_mbox_t{
158-
std::move(actual_mbox),
159-
protocol
160-
} };
157+
return {
158+
std::make_unique< test_mbox_t >(
159+
std::move(actual_mbox), protocol )
160+
};
161161
}
162162
)
163163
)

0 commit comments

Comments
 (0)