make scoped_state noncopyable

This commit is contained in:
Dane Springmeyer 2014-10-07 22:57:11 -07:00
parent 37f6aadcbb
commit 3a7c8ff3fb

View File

@ -81,7 +81,7 @@ public:
pixel_position const& position() const { return current_position; }
};
class scoped_state
class scoped_state : noncopyable
{
public:
scoped_state(vertex_cache &pp) : pp_(pp), state_(pp.save_state()), restored_(false) {}
@ -90,7 +90,7 @@ public:
state const& get_state() const { return state_; }
private:
vertex_cache &pp_;
class state state_;
state state_;
bool restored_;
};
@ -224,8 +224,5 @@ vertex_cache::vertex_cache(T & path)
}
}
}
#endif