From 13478115056e5fcbb3f162561740b80b297ff4b9 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Sat, 12 Sep 2020 22:46:08 +0200 Subject: [PATCH] Fixed bug introduced by experiment around concepts --- Makefile | 6 ++---- include/gp/iterator.hpp | 4 ++++ include/gp/range.hpp | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index ee5a1af..befc071 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,6 @@ -CXX= g++ +CXX= clang++-10 CXXFLAGS= --std=c++20 -O0 -g -pthread -DGP_TESTS -DFUZZ_STRENGTH=500 -DNO_BENCH=0 -pedantic \ - -frtti \ - - #-g -fprofile-instr-generate -fcoverage-mapping -Wno-unknown-attributes \ + -frtti -fprofile-instr-generate -fcoverage-mapping -Wno-unknown-attributes \ -fsanitize=address -fno-omit-frame-pointer all: tests diff --git a/include/gp/iterator.hpp b/include/gp/iterator.hpp index cfb114e..a5f0c9b 100644 --- a/include/gp/iterator.hpp +++ b/include/gp/iterator.hpp @@ -17,6 +17,10 @@ struct pointer_iterator final typedef std::size_t difference_type; static constexpr iterator_type_t iterator_type = iterator_type_t::contiguous_iterator; + constexpr pointer_iterator() + : data{nullptr} + {} + constexpr pointer_iterator(const pointer_iterator& oth) : data{oth.data} {} diff --git a/include/gp/range.hpp b/include/gp/range.hpp index aa92973..42ceed1 100644 --- a/include/gp/range.hpp +++ b/include/gp/range.hpp @@ -3,13 +3,13 @@ #include "gp/algorithm/tmp_manip.hpp" namespace gp{ - template + /*template concept IsSubstractible = requires(T a, T b) { {a - b} -> std::integral; - }; + };*/ - template> + template/* IsSubstractible */> class nameless_range; template