MeshLib Documentation
Loading...
Searching...
No Matches
MRSignal.h
Go to the documentation of this file.
1#pragma once
2
3#if (defined(__APPLE__) && defined(__clang__))
4#pragma clang diagnostic push
5#pragma clang diagnostic ignored "-Wunused-parameter"
6#endif
7
8#pragma warning(push)
9#pragma warning(disable: 4619) //#pragma warning: there is no warning number
10#include <boost/signals2/signal.hpp>
11#pragma warning(pop)
12
13#if (defined(__APPLE__) && defined(__clang__))
14#pragma clang diagnostic pop
15#endif
16
17namespace MR
18{
19
22template<typename T>
23struct Signal : boost::signals2::signal<T>
24{
25 Signal() noexcept = default;
26 Signal( const Signal& ) noexcept : boost::signals2::signal<T>() {}
27 Signal( Signal&& ) noexcept = default;
28 Signal& operator =( const Signal& ) noexcept { return *this; }
29 Signal& operator =( Signal&& ) noexcept = default;
30 Signal& operator =( boost::signals2::signal<T>&& b ) noexcept { *static_cast<boost::signals2::signal<T>*>(this) = std::move( b ); return *this; }
31};
32
33} //namespace MR
Definition MRCameraOrientationPlugin.h:8
Definition MRSignal.h:24
Signal() noexcept=default
Signal & operator=(const Signal &) noexcept
Definition MRSignal.h:28
Signal(Signal &&) noexcept=default