diff --git a/CMakeLists.txt b/CMakeLists.txt index 66ae3ad..ad1ceaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.5) include(cmake/color.cmake) -set(BLT_VERSION 0.14.9) +set(BLT_VERSION 0.14.10) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/ranges.h b/include/blt/std/ranges.h index 75ad640..27d8683 100644 --- a/include/blt/std/ranges.h +++ b/include/blt/std/ranges.h @@ -344,6 +344,9 @@ namespace blt constexpr span() noexcept: size_(0), data_(nullptr) {} + constexpr span(T* data, size_type count): size_(count), data_(data) + {} + template = true> constexpr explicit span(It first, size_type count): size_(count), data_(&*first) {}