poafloc

poafloc - Parser Of Arguments For Lines Of Commands
git clone git://git.dimitrijedobrota.com/poafloc.git
Log | Files | Refs | README | LICENSE

commit bcfaf8bb42d296a36126dd9e8a2ffca7bd91f659
parent 6fb3d52a73320c8c3149e3b316d7c17f9294e0e8
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Tue, 11 Jun 2024 12:39:46 +0200

Parser honor Rule of 5

Diffstat:
MCMakeLists.txt | 2+-
Minclude/args.hpp | 5+++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -3,7 +3,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) project( args - VERSION 0.0.5 + VERSION 0.0.7 DESCRIPTION "Command Line Argument Parser" LANGUAGES CXX C ) diff --git a/include/args.hpp b/include/args.hpp @@ -22,6 +22,11 @@ class Parser { friend int parse(const argp_t *, int, char **, void *) noexcept; Parser(const argp_t *argp, void *input); + Parser(const Parser &) = delete; + Parser(Parser &&) = delete; + Parser &operator=(const Parser &) = delete; + Parser &operator=(Parser &&) = delete; + ~Parser() noexcept = default; int parse(int argc, char *argv[], void *input);