+ make geometry noncopyable
+ make ctor explicit
This commit is contained in:
parent
cc60b74921
commit
9f27706e81
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ enum eGeomType {
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T, template <typename> class Container=vertex_vector>
|
template <typename T, template <typename> class Container=vertex_vector>
|
||||||
class geometry
|
class geometry : private::noncopyable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef T coord_type;
|
typedef T coord_type;
|
||||||
|
@ -54,7 +54,7 @@ private:
|
||||||
mutable unsigned itr_;
|
mutable unsigned itr_;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
geometry(eGeomType type)
|
explicit geometry(eGeomType type)
|
||||||
: type_(type),
|
: type_(type),
|
||||||
itr_(0)
|
itr_(0)
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in a new issue