Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new Table<3, T>::reinit() #13364

Merged
merged 1 commit into from Feb 13, 2022
Merged

Conversation

peterrum
Copy link
Member

... to be consistent with the constructor and Table<2, T>::reinit()

@@ -1549,6 +1549,18 @@ class Table<3, T> : public TableBase<3, T>
InputIterator entries,
const bool C_style_indexing = true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be possible to simply implement any size with a variadic template?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could, like the TableIndices class does (see #13375, completely coincidentally). The problem is that variadic template packs must come last in the argument list, and so these kinds of functions can also not have trailing defaulted arguments.

@tamiko tamiko merged commit 62b27da into dealii:master Feb 13, 2022
@@ -1549,6 +1549,18 @@ class Table<3, T> : public TableBase<3, T>
InputIterator entries,
const bool C_style_indexing = true);

/**
* Reinitialize the object. Passes down to the base class
* by converting the arguments to the data type requested by the base class.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm coming late to this patch, but there is nothing to be converted in this function. Is this a copy-paste mistake, or am I just not understanding what you are referring to here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants