Skip to content

Commit b9773cb

Browse files
committed
fix(*): fixing compile erros
1 parent c034aff commit b9773cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+777
-670
lines changed

include/stdsharp/algorithm/algorithm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include <algorithm>
88

9-
109
namespace stdsharp
1110
{
1211
inline constexpr struct set_if_fn

include/stdsharp/array/array.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#pragma once
22

3-
#include <array>
3+
#include "../macros.h"
4+
45
#include <algorithm>
6+
#include <array>
57
#include <ranges>
68

7-
#include "../macros.h"
8-
99
namespace stdsharp
1010
{
1111
template<std::size_t N>

include/stdsharp/cassert/cassert.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include <cassert>
99

10-
1110
namespace stdsharp
1211
{
1312
inline constexpr auto is_debug =

include/stdsharp/cmath/cmath.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#pragma once
22

3-
#include <cmath>
4-
53
#include "../concepts/concepts.h"
64

5+
#include <cmath>
6+
77
namespace stdsharp
88
{
99
constexpr auto ceil_quotient(const std::integral auto x, decltype(x) y) noexcept

include/stdsharp/compare/compare.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#pragma once
22

3-
#include <compare>
4-
53
#include "../concepts/concepts.h"
64

5+
#include <compare>
6+
77
namespace stdsharp
88
{
99
template<typename Cat>

include/stdsharp/compilation_config_in.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if defined( __GNUG__) || defined(_MSC_VER)
1+
#if defined(__GNUG__) || defined(_MSC_VER)
22
#pragma push_macro("STDSHARP_ALWAYS_INLINE")
33
#pragma push_macro("STDSHARP_NO_UNIQUE_ADDRESS")
44
#pragma push_macro("STDSHARP_INTRINSIC")
@@ -17,10 +17,10 @@
1717

1818
#ifdef _MSC_VER
1919
#define STDSHARP_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
20-
#define STDSHARP_INTRINSIC [[msvc::intrinsic]] [[nodiscard]]
20+
#define STDSHARP_INTRINSIC [[msvc::intrinsic]] [[nodiscard]]
2121
#else
2222
#define STDSHARP_NO_UNIQUE_ADDRESS [[no_unique_address]]
23-
#define STDSHARP_INTRINSIC STDSHARP_ALWAYS_INLINE [[nodiscard]]
23+
#define STDSHARP_INTRINSIC STDSHARP_ALWAYS_INLINE [[nodiscard]]
2424
#endif
2525

2626
#if defined(_MSC_VER) || (defined(_WIN32) && defined(__clang__))

include/stdsharp/concepts/object.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ namespace stdsharp
153153
implicitly_constructible_from<T, const T> && //
154154
implicitly_constructible_from<T, const T&>;
155155

156-
157156
template<typename T, typename... Args>
158157
concept nothrow_constructible_from = std::is_nothrow_constructible_v<T, Args...>;
159158

@@ -230,8 +229,8 @@ namespace stdsharp
230229
};
231230

232231
template<typename T>
233-
concept dereferenceable = requires(T& t) {
234-
{ *t } -> referenceable;
232+
concept dereferenceable = requires(T&& t) {
233+
{ *cpp_forward(t) } -> referenceable;
235234
};
236235

237236
template<typename T>

include/stdsharp/concepts/type.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ namespace stdsharp
5252
template<typename T>
5353
concept aggregate = std::is_aggregate_v<T>;
5454

55+
template<typename T>
56+
concept void_ = std::is_void_v<T>;
57+
5558
template<typename T>
5659
concept character = same_as_any<T, char, char8_t, char16_t, char32_t, wchar_t>;
5760

0 commit comments

Comments
 (0)