util/DynamicFifoBuffer: make constructor "explicit"

This commit is contained in:
Max Kellermann 2013-12-15 22:35:17 +01:00
parent 9cfd9d7ce0
commit c44cb3246d

View File

@ -57,7 +57,7 @@ protected:
T *data; T *data;
public: public:
DynamicFifoBuffer(size_type _capacity) explicit DynamicFifoBuffer(size_type _capacity)
:head(0), tail(0), capacity(_capacity), :head(0), tail(0), capacity(_capacity),
data(new T[capacity]) {} data(new T[capacity]) {}
~DynamicFifoBuffer() { ~DynamicFifoBuffer() {