coord: use explicit constructors consistently
This commit is contained in:
parent
69443f2c2a
commit
c4f773f129
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user