Removed explicit again

release/4.3a0
dellaert 2018-11-08 13:39:03 -05:00
parent d86782eebc
commit b7f7e147cd
1 changed files with 2 additions and 2 deletions

View File

@ -64,13 +64,13 @@ class FastVector: public std::vector<VALUE,
} }
/** Copy constructor from the base class */ /** Copy constructor from the base class */
explicit FastVector(const Base& x) : FastVector(const Base& x) :
Base(x) { Base(x) {
} }
/** Copy constructor from a standard STL container */ /** Copy constructor from a standard STL container */
template<typename ALLOCATOR> template<typename ALLOCATOR>
explicit FastVector(const std::vector<VALUE, ALLOCATOR>& x) { FastVector(const std::vector<VALUE, ALLOCATOR>& x) {
// This if statement works around a bug in boost pool allocator and/or // This if statement works around a bug in boost pool allocator and/or
// STL vector where if the size is zero, the pool allocator will allocate // STL vector where if the size is zero, the pool allocator will allocate
// huge amounts of memory. // huge amounts of memory.