Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clapp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libclapp
clapp
Commits
5fd5dd51
Commit
5fd5dd51
authored
2 years ago
by
Martin Wölzer
Browse files
Options
Downloads
Patches
Plain Diff
src/include/clapp/main_parser.h: inherit constructors from basic_parser_t
parent
14b08f32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!22
Add support for option-container
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/doc.md
+1
-1
1 addition, 1 deletion
doc/doc.md
src/clapp/main_parser.cpp
+0
-2
0 additions, 2 deletions
src/clapp/main_parser.cpp
src/include/clapp/main_parser.h
+1
-1
1 addition, 1 deletion
src/include/clapp/main_parser.h
with
2 additions
and
4 deletions
doc/doc.md
+
1
−
1
View file @
5fd5dd51
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
src/clapp/main_parser.cpp
+
0
−
2
View file @
5fd5dd51
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
src/include/clapp/main_parser.h
+
1
−
1
View file @
5fd5dd51
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment