coord: use explicit constructors consistently

This commit is contained in:
Danny Robson 2015-09-09 18:37:26 +10:00
parent 69443f2c2a
commit c4f773f129
3 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ namespace util { namespace coord {
constexpr explicit base (T val)
{ std::fill (std::begin (this->data), std::end (this->data), val); }
constexpr base (const base<S,T,KLASS,tags...> &rhs) = default;
constexpr explicit base (const base<S,T,KLASS,tags...> &rhs) = default;
base& operator= (const base<S,T,KLASS,tags...> &rhs) = default;
// element accessors

View File

@ -32,7 +32,7 @@ namespace util {
using coord::base<S,T,util::extent,coord::whd>::base;
extent () = default;
extent (vector<S,T>);
explicit extent (vector<S,T>);
T area (void) const;
T diameter (void) const;

View File

@ -62,10 +62,10 @@ namespace util {
//---------------------------------------------------------------------
region () = default;
region (extent_t);
explicit region (extent_t);
region (point_t, extent_t);
region (point_t, point_t);
region (std::array<T,S*2>);
explicit region (std::array<T,S*2>);
//---------------------------------------------------------------------
size_type area (void) const;