Warning fix: explicit conversion to size_type

This commit is contained in:
Simon Giraudot 2017-04-07 11:49:59 +02:00
parent af78f66230
commit 800c16f2e1
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public:
size_type value;
public:
Index (const Index& index) : value (index) { }
Index (const Index& index) : value (static_cast<size_type>(index)) { }
Index (const std::size_t& value) : value (static_cast<size_type>(value)) { }
Index () : value (static_cast<size_type>(-1)) { }
Index operator= (const Index& index) { value = index.value; return *this; }