coord: make scalar constructors explicit

This commit is contained in:
Danny Robson 2015-01-13 18:33:52 +11:00
parent f309c5dbd0
commit ed62d9516e

View File

@ -40,7 +40,7 @@ namespace util {
coord () { ; }
coord (T v)
explicit coord (T v)
{ std::fill (std::begin (data), std::end (data), v); }
template <typename ...U>
@ -61,7 +61,7 @@ namespace util {
coord () { ; }
coord (T v)
explicit coord (T v)
{ std::fill (std::begin (data), std::end (data), v); }
template <typename ...U>
@ -85,7 +85,7 @@ namespace util {
coord () { ; }
coord (T v)
explicit coord (T v)
{ std::fill (std::begin (data), std::end (data), v); }
template <typename ...U>
@ -132,7 +132,7 @@ namespace util {
coord () { ; }
coord (T v)
explicit coord (T v)
{ std::fill (std::begin (data), std::end (data), v); }
template <typename... U>
@ -176,7 +176,7 @@ namespace util {
coord () { ; }
coord (T v)
explicit coord (T v)
{ std::fill (std::begin (data), std::end (data), v); }
template <typename... U>