Skip to content
Snippets Groups Projects
Commit 3a69c982 authored by Oliver Sander's avatar Oliver Sander
Browse files

make constructor with a single integer argument explicit

[[Imported from SVN: r4712]]
parent 055aa046
Branches
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ namespace Dune {
BitField() : std::vector<bool>() {}
//! Constructor with a given length
BitField(int n) : std::vector<bool>(n) {}
explicit BitField(int n) : std::vector<bool>(n) {}
//! Constructor which initializes the field
BitField(int n, bool v) : std::vector<bool>(n) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment