From ba28abb4f4dff3a47f1ae255e8290b7ee4b6a4e0 Mon Sep 17 00:00:00 2001 From: Recolic <git@me.recolic.net> Date: Fri, 10 Nov 2023 17:44:49 -0800 Subject: [PATCH] .adjust code comments and format --- functional.hpp | 2 -- sys/sio.hpp | 4 ---- test/Makefile | 15 +-------------- test/src/c.fish | 3 --- test/src/os.cc | 1 - 5 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 test/src/c.fish diff --git a/functional.hpp b/functional.hpp index 8392c73..891230a 100644 --- a/functional.hpp +++ b/functional.hpp @@ -116,9 +116,7 @@ namespace rlib { } this_type &flat_map(std::function<buffer_type<value_type>(const value_type &)>) { - } - }; } #endif diff --git a/sys/sio.hpp b/sys/sio.hpp index 925ff8d..5578fe4 100644 --- a/sys/sio.hpp +++ b/sys/sio.hpp @@ -709,11 +709,7 @@ namespace rlib { sendn_ex(fd, &head, sizeof(head), MSG_NOSIGNAL); sendn_ex(fd, dat.data(), head.len, MSG_NOSIGNAL); } - }; - - } // namespace rlib - #endif diff --git a/test/Makefile b/test/Makefile index 636adc0..5eca6ea 100644 --- a/test/Makefile +++ b/test/Makefile @@ -22,21 +22,8 @@ MODULES=string meta trait stdio sio scope_guard XTRA_FLAGS ?= -CXXFLAGS=-I. -I../.. $(XTRA_FLAGS) STD ?= 14 -FLAGS11=-std=c++11 -FLAGS14=-std=c++14 -FLAGS17=-std=c++17 - -ifeq ($(STD),11) - CXXFLAGS := $(CXXFLAGS) $(FLAGS11) -endif -ifeq ($(STD),14) - CXXFLAGS := $(CXXFLAGS) $(FLAGS14) -endif -ifeq ($(STD),17) - CXXFLAGS := $(CXXFLAGS) $(FLAGS17) -endif +CXXFLAGS=-I. -I../.. $(XTRA_FLAGS) -std=c++$(STD) POSTFIX=$(STD)_$(CXX) diff --git a/test/src/c.fish b/test/src/c.fish deleted file mode 100644 index 61bf9f7..0000000 --- a/test/src/c.fish +++ /dev/null @@ -1,3 +0,0 @@ -for fl in (ls *.cc) - g++ $fl -g -o /tmp/$fl.ex -std=c++17 -lr -end diff --git a/test/src/os.cc b/test/src/os.cc index 45dba7e..7effc05 100644 --- a/test/src/os.cc +++ b/test/src/os.cc @@ -8,5 +8,4 @@ static_assert(rlib::os_info::os == rlib::os_info::os_t::LINUX); static_assert(rlib::os_info::compiler == rlib::os_info::compiler_t::GCC); int main(){ - } -- GitLab