Skip to content
Snippets Groups Projects
Commit f3a15439 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

field_t.inl: set lambda capture.

parent 30422fab
No related branches found
No related tags found
No related merge requests found
......@@ -80,12 +80,12 @@ inline Field_t& Field_t::operator=( T&& t ) noexcept {
}
inline void Field_t::resize(size_t count) {
field_operation([](LambdaField_T_ field, size_t count){field.resize(count);}, *this, count);
field_operation([=](LambdaField_T_ field){field.resize(count);}, *this);
}
template<typename U>
inline void Field_t::resize(size_t count, const U value) {
field_operation([](LambdaField_T_ field, size_t count, const U value){field.resize(count, value);}, *this, count, value);
field_operation([=](LambdaField_T_ field){field.resize(count, value);}, *this);
}
inline void Field_t::setMissValue(double value) {
......@@ -111,7 +111,7 @@ inline size_t Field_t::getNumMiss() const {
}
inline void Field_t::setNumMiss(const size_t value) {
return field_operation([](LambdaField_T_ field, const size_t value) {field.nmiss = value;}, *this, value);
return field_operation([=](LambdaField_T_ field) {field.nmiss = value;}, *this);
}
inline size_t Field_t::getSize() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment