Argx 1.2.2-build
Simple yet powerful argument parser made in C++
Loading...
Searching...
No Matches
ARGXAddError.hpp
Go to the documentation of this file.
1#pragma once
2
3// NOTE:
4// Left behind with the old C++ standard (C++11) as it is not being maintained anymore
5#if __cplusplus >= 201103L || defined(ARGX_AS_PYTHON_PACKAGE)
6
7#include <string>
8#include <utility>
9
10namespace argx
11{
12 class [[deprecated("ARGXAddError is deprecated, there is no direct replacement, this function is going to be removed in version 1.4.0")]]
14 {
15 private:
16 std::string msg;
17 std::string help;
18
19 public:
20 ARGXAddError(const std::string &msg, const std::string &help = "");
21
22 std::pair<const char* /*Error*/, const char* /*Help*/> what() const noexcept;
23 };
24}
25
26#else
27# error "Must compile with C++11 support or newer"
28# pragma message("Current standard is " ARGX_TOSTRING(__cplusplus))
29#endif
30
ARGXAddError(const std::string &msg, const std::string &help="")
std::pair< const char *, const char * > what() const noexcept
Definition Argx.hpp:16