Skip to content

Commit

Permalink
xrWeatherEditor: Remove boost::noncopyable dependency.
Browse files Browse the repository at this point in the history
Can be done with C++11 without depending on boost.
  • Loading branch information
CrossVR committed Jun 22, 2016
1 parent 0a0c0c3 commit d4ff5d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/editors/xrWeatherEditor/window_weather_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ using Microsoft::Win32::Registry;
using Microsoft::Win32::RegistryKey;
using Microsoft::Win32::RegistryValueKind;

struct engine_pauser_guard : private boost::noncopyable {
struct engine_pauser_guard {
engine& m_engine;
bool m_weather_paused;

// Non-copyable
engine_pauser_guard(const engine_pauser_guard&) = delete;
engine_pauser_guard& operator=(const engine_pauser_guard&) = delete;

inline engine_pauser_guard (engine& engine, bool const& value) :
m_engine (engine),
m_weather_paused (engine.weather_paused())
Expand Down

0 comments on commit d4ff5d5

Please sign in to comment.