ReactivePlusPlus
One more implementation of ReactiveX approach in C++ with care about performance and templates in mind
 
Loading...
Searching...
No Matches
defs.hpp
1// ReactivePlusPlus library
2//
3// Copyright Aleksey Loginov 2022 - present.
4// Distributed under the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at
6// https://www.boost.org/LICENSE_1_0.txt)
7//
8// Project home: https://github.com/victimsnino/ReactivePlusPlus
9
10#pragma once
11
12// MSVC has bad support for the empty base classes, but provides specificator to enable full support. GCC/Clang works as expected
13#if defined(_MSC_VER) && _MSC_FULL_VER >= 190023918
14# define RPP_EMPTY_BASES __declspec(empty_bases)
15#else
16# define RPP_EMPTY_BASES
17#endif
18
19// MSVC has bad support for the no_unique_address from the box NOW, but provides specificator to enable full support. GCC/Clang works as expected
20#if defined(_MSC_VER) && _MSC_FULL_VER >= 192829913
21# define RPP_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
22#else
23# define RPP_NO_UNIQUE_ADDRESS [[no_unique_address]]
24#endif