1
0
Fork 0

copy by referance in lambda

This commit is contained in:
Kevin Matz 2021-09-01 12:31:19 -04:00
parent 26136e1397
commit ca89b60e21
1 changed files with 4 additions and 4 deletions

View File

@ -245,14 +245,14 @@ void Pdu::iStream(PDU::Stream stream)
auto header = std::static_pointer_cast<address_type>(this->header());
auto dataIsAddressList = [this, header] () {
auto dataIsAddressList = [&] () {
data_ = std::make_shared<address_list>(*header);
*stream_ >> *data_;
data_->iStream(stream_);
};
auto dataIsAdddresPairList = [this, header] () {
auto dataIsAdddresPairList = [&] () {
data_ = std::make_shared<address_pair_list>(*header);
*stream_ >> *data_;
data_->iStream(stream_);
};
switch(vector()) {