File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
sample/so_5/custom_direct_mbox
test/so_5/mbox/custom_direct_mbox_factory Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ void run_intercepting_scenario()
263
263
( so_5::partially_constructed_agent_ptr_t /* agent_ptr*/ ,
264
264
so_5::mbox_t source_mbox ) -> so_5::mbox_t
265
265
{
266
- return { new intercepting_mbox_t { source_mbox, target_mbox } };
266
+ return { std::make_unique< intercepting_mbox_t >( source_mbox, target_mbox ) };
267
267
};
268
268
269
269
// Original consumer has to be created manually because we
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Delivery filters for mutable messages should be set via a new method
9
9
so_5::agent_t::so_set_delivery_filter_for_mutable_msg().
10
10
11
11
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().
12
13
13
14
\section so_5__5_7_3 5.7.3 "Cotopaxi"
14
15
Original file line number Diff line number Diff line change @@ -152,12 +152,12 @@ class a_test_t : public so_5::agent_t
152
152
custom_direct_mbox_factory (
153
153
[&protocol](
154
154
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
156
156
{
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
+ };
161
161
}
162
162
)
163
163
)
You can’t perform that action at this time.
0 commit comments