Skip to content
Snippets Groups Projects
Commit 5fd5dd51 authored by Martin Wölzer's avatar Martin Wölzer
Browse files

src/include/clapp/main_parser.h: inherit constructors from basic_parser_t

parent 14b08f32
No related branches found
No related tags found
1 merge request!22Add support for option-container
......@@ -485,7 +485,7 @@ Thus, by simply passing around a reference (or a pointer) to this main parser, a
arguments or option can be be accessed easily.
### Main parser construction:
The main-parser base class `clapp::parser::basic_main_parser_t` contains only one constructor.
The main-parser base class `clapp::parser::basic_main_parser_t` inherits its constructors from its base-class `clapp::parser::basic_parser_t`.
This constructor has no arguments, but since it is a base-class, you can extend it easily by
your derived class. See the listing below for an example.
......
......@@ -16,8 +16,6 @@
#include <clapp/exception.h>
#include <clapp/main_parser.h>
clapp::parser::basic_main_parser_t::basic_main_parser_t() = default;
clapp::parser::basic_main_parser_t::~basic_main_parser_t() = default;
clapp::parser::basic_main_parser_t::operator bool() const {
......
......@@ -23,7 +23,7 @@ namespace clapp {
inline namespace parser {
class basic_main_parser_t : public basic_parser_t {
public:
basic_main_parser_t();
using basic_parser_t::basic_parser_t;
~basic_main_parser_t() override;
// TODO(martinw): enable, if basic_parser has implemented this too
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment