Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
f3a15439
Commit
f3a15439
authored
2 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
field_t.inl: set lambda capture.
parent
30422fab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/field_t.inl
+3
-3
3 additions, 3 deletions
src/field_t.inl
with
3 additions
and
3 deletions
src/field_t.inl
+
3
−
3
View file @
f3a15439
...
...
@@ -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 {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment