2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-14 00:42:36 +00:00

Improved transport examples

This commit is contained in:
Emil Dotchevski
2018-10-05 22:17:54 +02:00
parent ca85d5428d
commit 1dd286fc0d
4 changed files with 153 additions and 8 deletions

View File

@@ -25,7 +25,8 @@ boost
container_t info_;
public:
capture( capture && ) = default;
capture():
explicit
capture( bool do_capture=true ):
info_( [ ]
{
using namespace leaf_detail;
@@ -42,6 +43,7 @@ boost
void
release() noexcept
{
int size = info_.size();
container_t().swap(info_);
}
};