Argx 1.0.0-build
Simple argument parser made in C++
 
Loading...
Searching...
No Matches
ARGXAddError.hpp
Go to the documentation of this file.
1#pragma once
2
3#if __cplusplus >= 201103L
4
5#include <string>
6#include <utility>
7
8namespace argx
9{
11 {
12 private:
13 std::string msg;
14 std::string help;
15
16 public:
17 ARGXAddError(const std::string &msg, const std::string &help = "");
18
19 std::pair<const char* /*Error*/, const char* /*Help*/> what() const noexcept;
20 };
21}
22
23#else
24# error "Must compile with C++11 support or newer"
25# pragma message("Current standard is " ARGX_TOSTRING(__cplusplus))
26#endif
27
ARGXAddError(const std::string &msg, const std::string &help="")
std::pair< const char *, const char * > what() const noexcept
Definition Argx.hpp:16