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