You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In type_fwd.h, we have a type alias declaration: using FieldVector = std::vector<std::shared_ptr<Field>>
But some of the function declaration in this file use this alias while some don't.
Maybe it's a good idea to change all std::vector<std::shared_ptr<Field>> to FieldVector in type_fwd.h and even files like type.cc for clarity and maintainability ?
Component(s)
C++
The text was updated successfully, but these errors were encountered:
…s alias: FieldVector (#37101)
### Rationale for this change
Clarity and Maintainability
### What changes are included in this PR?
1. Changed all occurrence of std::vector<std::shared_ptr<Field>> in **type_fwd.h**、**type.h** and **type.cc** to FieldVector for consistency.
2. Use move to eliminate vector copy in sparse and dense union's constructor
### Are these changes tested?
Covered by existing tests
### Are there any user-facing changes?
No
* Closes: #36950
Authored-by: jsjtxietian <jsjtxietian@outlook.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
…se it's alias: FieldVector (apache#37101)
### Rationale for this change
Clarity and Maintainability
### What changes are included in this PR?
1. Changed all occurrence of std::vector<std::shared_ptr<Field>> in **type_fwd.h**、**type.h** and **type.cc** to FieldVector for consistency.
2. Use move to eliminate vector copy in sparse and dense union's constructor
### Are these changes tested?
Covered by existing tests
### Are there any user-facing changes?
No
* Closes: apache#36950
Authored-by: jsjtxietian <jsjtxietian@outlook.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
Describe the enhancement requested
In type_fwd.h, we have a type alias declaration:
using FieldVector = std::vector<std::shared_ptr<Field>>
But some of the function declaration in this file use this alias while some don't.
Maybe it's a good idea to change all
std::vector<std::shared_ptr<Field>>
toFieldVector
in type_fwd.h and even files like type.cc for clarity and maintainability ?Component(s)
C++
The text was updated successfully, but these errors were encountered: