Skip to content

Commit da035fc

Browse files
committed
remove explicit for compile problem
1 parent c6fb163 commit da035fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paddle/fluid/framework/mixed_vector.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,13 @@ template <typename T>
387387
class CPUVector : public std::vector<T, std::allocator<T>> {
388388
public:
389389
CPUVector() : std::vector<T>() {}
390-
explicit CPUVector(size_t count, const T &value = T())
390+
CPUVector(size_t count, const T &value = T()) // NOLINT
391391
: std::vector<T>(count, value) {}
392392
CPUVector(std::initializer_list<T> init) : std::vector<T>(init) {}
393-
explicit CPUVector(const std::vector<T> &other) : std::vector<T>(other) {}
394-
explicit CPUVector(const CPUVector<T> &other) : std::vector<T>(other) {}
393+
CPUVector(const std::vector<T> &other) : std::vector<T>(other) {} // NOLINT
394+
CPUVector(const CPUVector<T> &other) : std::vector<T>(other) {}
395395
CPUVector(CPUVector<T> &&other) : std::vector<T>(std::move(other)) {}
396-
explicit CPUVector(std::vector<T> &&other)
396+
CPUVector(std::vector<T> &&other) // NOLINT
397397
: std::vector<T>(std::move(other)) {}
398398
CPUVector &operator=(const CPUVector &other) {
399399
this->assign(other.begin(), other.end());

0 commit comments

Comments
 (0)