Downgrade to C++20 & switch to fmtlib.

This commit is contained in:
Skyth committed 2024-12-13 18:54:05 +03:00
1 parent 1ab25d5b41
commit 4b728f4a2b
21 files changed
+70 -69

No files matched your search

@@ -48,7 +48,7 @@ namespace Hedgehog::Base
do
{
originalValue = RefCountAndLength.value;
incrementedValue = std::byteswap(std::byteswap(originalValue) + 1);
incrementedValue = ByteSwap(ByteSwap(originalValue) + 1);
} while (InterlockedCompareExchange(reinterpret_cast<LONG*>(&RefCountAndLength), incrementedValue, originalValue) != originalValue);
}
@@ -58,7 +58,7 @@ namespace Hedgehog::Base
do
{
originalValue = RefCountAndLength.value;
decrementedValue = std::byteswap(std::byteswap(originalValue) - 1);
decrementedValue = ByteSwap(ByteSwap(originalValue) - 1);
} while (InterlockedCompareExchange(reinterpret_cast<LONG*>(&RefCountAndLength), decrementedValue, originalValue) != originalValue);
if (RefCountAndLength == 0)
@@ -69,7 +69,7 @@ namespace boost
uint32_t use_count() const
{
return std::byteswap(static_cast<uint32_t const volatile &>(use_count_.value));
return ByteSwap(static_cast<uint32_t const volatile &>(use_count_.value));
}
bool unique() const