Compare commits

...

No commits in common. 'i9-libreoffice' and 'f41' have entirely different histories.

@ -1 +0,0 @@
cce2994151ccd58ccbb5db060374ec909e34cf8c SOURCES/frozen-1.1.1.tar.gz

3
.gitignore vendored

@ -1 +1,2 @@
SOURCES/frozen-1.1.1.tar.gz
/frozen-1.1.1.tar.gz
/frozen-1.2.0.tar.gz

@ -0,0 +1,3 @@
# frozen
The frozen package

@ -1,37 +0,0 @@
From 079f73cc5c6413127d47f325cbb34a607e2cb030 Mon Sep 17 00:00:00 2001
From: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
Date: Fri, 16 Dec 2022 22:58:51 +0100
Subject: [PATCH] Workaround gcc 11 limitation
For some reason, gcc sees a constexpr violation here. Trust clang and msvc on this.
---
include/frozen/unordered_set.h | 2 +-
tests/test_unordered_set.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/frozen/unordered_set.h b/include/frozen/unordered_set.h
index 4d16df9..196ea50 100644
--- a/include/frozen/unordered_set.h
+++ b/include/frozen/unordered_set.h
@@ -105,7 +105,7 @@ class unordered_set {
/* lookup */
template <class KeyType, class Hasher, class Equal>
constexpr std::size_t count(KeyType const &key, Hasher const &hash, Equal const &equal) const {
- auto const k = lookup(key, hash);
+ auto const & k = lookup(key, hash);
return equal(k, key);
}
template <class KeyType>
diff --git a/tests/test_unordered_set.cpp b/tests/test_unordered_set.cpp
index e90a0d4..042c1a8 100644
--- a/tests/test_unordered_set.cpp
+++ b/tests/test_unordered_set.cpp
@@ -65,7 +65,7 @@ TEST_CASE("tripleton str frozen unordered set", "[unordered set]") {
constexpr auto max_size = ze_set.max_size();
REQUIRE(max_size == 3);
- constexpr auto nocount = ze_set.count(4);
+ const auto nocount = ze_set.count(4);
REQUIRE(nocount == 0);
constexpr auto count = ze_set.count(1);

@ -1,11 +0,0 @@
--- include/frozen/bits/pmh.h~ 2022-03-31 00:56:25.000000000 -0500
+++ include/frozen/bits/pmh.h 2023-07-17 13:42:52.903675376 -0500
@@ -30,6 +30,8 @@
#include <array>
#include <limits>
+#include <cstdint>
+
namespace frozen {
namespace bits {

@ -2,16 +2,13 @@
%global debug_package %{nil}
Name: frozen
Version: 1.1.1
Release: 3%{?dist}
Summary: A header-only, constexpr alternative to gperf for C++14 users
Version: 1.2.0
Release: 1%{?dist}
Summary: A header-only, constexpr alternative to gperf for C++14 users
License: Apache-2.0
URL: https://github.com/serge-sans-paille/frozen
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# Fixes FTBFS, already present in upstream main branch.
Patch0: includes.patch
Patch1: 079f73cc5c6413127d47f325cbb34a607e2cb030.patch
BuildRequires: gcc-c++
BuildRequires: cmake
@ -34,9 +31,6 @@ Development files for %{name}.
%prep
%setup -q
%patch -P 0 -p0
%patch -P 1 -p1
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build
@ -55,8 +49,17 @@ Development files for %{name}.
%{_datadir}/cmake/%{name}/
%changelog
* Sat May 11 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.1.1-3
- Rebuilt for MSVSphere 9.4
* Tue Sep 03 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.2.0-1
- 1.2.0
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jul 19 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.1.1-3
- Drop main package.

@ -0,0 +1 @@
SHA512 (frozen-1.2.0.tar.gz) = 644b29f60458fc5193a3fb16a347c190f9694d1bdbc75202aafe8d43eb72ce0433bbeaeb692f8ca485000d68b451ddc0236a1880ebbd64477f73198043d046b3
Loading…
Cancel
Save