From ba744333edda18990b3e283f9d4bff27021001e1 Mon Sep 17 00:00:00 2001 From: zawz Date: Fri, 4 Jun 2021 13:25:24 +0200 Subject: [PATCH] add option_set constructors --- Makefile | 4 ++-- include/options.hpp | 15 ++++++++++----- src/options.cpp | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8bc94fa..6c8bc8f 100644 --- a/Makefile +++ b/Makefile @@ -49,10 +49,10 @@ install: uninstall: rm $(INSTALL)/usr/lib/libztd.* - rm -rd $(INSTALL)/usr/include/ztd + rm -r $(INSTALL)/usr/include/ztd clean: rm $(ODIR)/*.o $(ODIR_SHARED)/*.o clear: - rm -rd libztd.a libztd.so doc + rm -r libztd.a libztd.so doc diff --git a/include/options.hpp b/include/options.hpp index 204e652..90022d0 100644 --- a/include/options.hpp +++ b/include/options.hpp @@ -135,9 +135,14 @@ namespace ztd class option_set { public: + option_set() { ; } + option_set(option opt) { add(opt); } + option_set(std::vector