aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
authorPavel Belikov <pavel.fuchs.belikov@gmail.com>2018-05-04 20:19:33 +0300
committerPavel Belikov <pavel.fuchs.belikov@gmail.com>2018-05-04 20:19:33 +0300
commit17cfe1afd74dbfa5e4ba1401eeca9c80f6011b95 (patch)
tree81fa421d5792a99c9f821b610e9e5b64a2da01c9 /args.hxx
parentAdd test for windows minmax (diff)
downloadargs.hxx-17cfe1afd74dbfa5e4ba1401eeca9c80f6011b95.tar.xz
Fix Nargs::min, Nargs::max initializers for min/max macros from <windows.h>
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/args.hxx b/args.hxx
index 655718f..c4fbc10 100644
--- a/args.hxx
+++ b/args.hxx
@@ -748,7 +748,7 @@ namespace args
const size_t min;
const size_t max;
- Nargs(size_t min_, size_t max_) : min(min_), max(max_)
+ Nargs(size_t min_, size_t max_) : min{min_}, max{max_}
{
#ifndef ARGS_NOEXCEPT
if (max < min)
@@ -758,7 +758,7 @@ namespace args
#endif
}
- Nargs(size_t num_) : min(num_), max(num_)
+ Nargs(size_t num_) : min{num_}, max{num_}
{
}