Fix compilation

This commit is contained in:
Lynix 2017-09-30 14:30:36 +02:00
parent 4f0435754f
commit aa80f52597
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Core/MovablePtr.hpp>
#include <cassert>
#include <utility>
namespace Nz
{

View File

@ -8,6 +8,7 @@
#define NAZARA_SEMAPHORE_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Core/MovablePtr.hpp>
namespace Nz
{
@ -18,7 +19,7 @@ namespace Nz
public:
Semaphore(unsigned int count);
Semaphore(const Semaphore&) = delete;
Semaphore(Semaphore&&) = delete; ///TODO
Semaphore(Semaphore&&) noexcept = default;
~Semaphore();
unsigned int GetCount() const;
@ -29,10 +30,10 @@ namespace Nz
bool Wait(UInt32 timeout);
Semaphore& operator=(const Semaphore&) = delete;
Semaphore& operator=(Semaphore&&) = delete; ///TODO
Semaphore& operator=(Semaphore&&) noexcept = default;
private:
SemaphoreImpl* m_impl;
MovablePtr<SemaphoreImpl> m_impl;
};
}