Skip to content

Commit e48d995

Browse files
author
Hana Dusíková
committed
fixed zero width array + support to user provide CXXFLAGS for building
1 parent e18050d commit e48d995

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ DESATOMAT := /www/root/desatomat/console/desatomat.php
99

1010
CPP_STANDARD := $(shell ./cpp-20-check.sh $(CXX))
1111

12-
CXXFLAGS := $(CPP_STANDARD) -Iinclude -O3 -pedantic -Wall -Wextra
12+
override CXXFLAGS := $(CXXFLAGS) $(CPP_STANDARD) -Iinclude -O3 -pedantic -Wall -Wextra
1313
LDFLAGS := -lre2 -lboost_regex -lpcre2-8
1414

1515
TESTS := $(wildcard tests/*.cpp) $(wildcard tests/benchmark/*.cpp)

include/ctll/fixed_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ template <size_t N> class fixed_string {
173173
template <> class fixed_string<0> {
174174
static constexpr char32_t __empty[1] = {0};
175175
public:
176-
template <typename T> constexpr fixed_string(const T (&)[]) noexcept {
176+
template <typename T> constexpr fixed_string(const T *) noexcept {
177177

178178
}
179179
constexpr fixed_string(std::initializer_list<char32_t>) noexcept {

single-header/ctre.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ template <size_t N> class fixed_string {
408408
template <> class fixed_string<0> {
409409
static constexpr char32_t __empty[1] = {0};
410410
public:
411-
template <typename T> constexpr fixed_string(const T (&)[]) noexcept {
411+
template <typename T> constexpr fixed_string(const T *) noexcept {
412412

413413
}
414414
constexpr fixed_string(std::initializer_list<char32_t>) noexcept {

0 commit comments

Comments
 (0)