Remove boost::noncopyable use & boost::random dependency (#4776)

The use has been removed from the following files:
* Atomic.hpp
* SignalVector.hpp
* Benchmark.hpp
* IvrApi
* LoggingChannel.hpp
* Singleton.hpp
* Image.hpp
* PrecompiledHeader.hpp
* Message.hpp
* MessageElement.hpp
* MessageLayout.hpp
* MessageLayoutElement.hpp
* Fonts.hpp (just include)
This commit is contained in:
pajlada
2023-09-09 12:23:20 +02:00
committed by GitHub
parent ba440e0ccb
commit 877a4e05fa
17 changed files with 92 additions and 35 deletions
+8 -6
View File
@@ -1,24 +1,26 @@
#pragma once
#include <boost/noncopyable.hpp>
#include <mutex>
namespace chatterino {
template <typename T>
class Atomic : boost::noncopyable
class Atomic
{
public:
Atomic()
{
}
Atomic() = default;
Atomic(T &&val)
: value_(val)
{
}
Atomic(const Atomic &) = delete;
Atomic &operator=(const Atomic &) = delete;
Atomic(Atomic &&) = delete;
Atomic &operator=(Atomic &&) = delete;
T get() const
{
std::lock_guard<std::mutex> guard(this->mutex_);