From da035fc674b5b837860973d2af0fbfc8db1a60c6 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Wed, 25 Jul 2018 09:35:27 +0800 Subject: [PATCH] remove explicit for compile problem --- paddle/fluid/framework/mixed_vector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/framework/mixed_vector.h b/paddle/fluid/framework/mixed_vector.h index f4fe33434..7836ecb12 100644 --- a/paddle/fluid/framework/mixed_vector.h +++ b/paddle/fluid/framework/mixed_vector.h @@ -387,13 +387,13 @@ template class CPUVector : public std::vector> { public: CPUVector() : std::vector() {} - explicit CPUVector(size_t count, const T &value = T()) + CPUVector(size_t count, const T &value = T()) // NOLINT : std::vector(count, value) {} CPUVector(std::initializer_list init) : std::vector(init) {} - explicit CPUVector(const std::vector &other) : std::vector(other) {} - explicit CPUVector(const CPUVector &other) : std::vector(other) {} + CPUVector(const std::vector &other) : std::vector(other) {} // NOLINT + CPUVector(const CPUVector &other) : std::vector(other) {} CPUVector(CPUVector &&other) : std::vector(std::move(other)) {} - explicit CPUVector(std::vector &&other) + CPUVector(std::vector &&other) // NOLINT : std::vector(std::move(other)) {} CPUVector &operator=(const CPUVector &other) { this->assign(other.begin(), other.end()); -- GitLab