aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTaylor C. Richberger <Taywee@gmx.com>2016-05-11 18:10:53 -0600
committerTaylor C. Richberger <Taywee@gmx.com>2016-05-11 18:10:53 -0600
commit1b9b9823d4619ef62783e25768b9460dcde55a74 (patch)
tree37c60846dfdc469cc591b82390aac8728bed9ccf /README.md
parentbump version (diff)
downloadargs.hxx-1b9b9823d4619ef62783e25768b9460dcde55a74.tar.xz
add mapping flag, throw maperror, ensure throwing works properly
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index a1abbcf..18ac5e4 100644
--- a/README.md
+++ b/README.md
@@ -492,7 +492,7 @@ Argument 'numbers' received invalid value type 'a'
```cpp
#include <iostream>
#include <tuple>
-#include <args.hxx>
+
std::istream& operator>>(std::istream& is, std::tuple<int, int>& ints)
{
is >> std::get<0>(ints);
@@ -501,6 +501,8 @@ std::istream& operator>>(std::istream& is, std::tuple<int, int>& ints)
return is;
}
+#include <args.hxx>
+
void DoublesReader(const std::string &name, const std::string &value, std::tuple<double, double> &destination)
{
size_t commapos = 0;