Skip to content

Commit 6e84659

Browse files
d3rhansvprus
authored andcommitted
Use maximum unsigned as default multitoken limit.
Fixes #10718.
1 parent f081a93 commit 6e84659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/program_options/value_semantic.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <string>
1818
#include <vector>
1919
#include <typeinfo>
20+
#include <limits>
2021

2122
namespace boost { namespace program_options {
2223

@@ -313,7 +314,7 @@ namespace boost { namespace program_options {
313314

314315
unsigned max_tokens() const {
315316
if (m_multitoken) {
316-
return 32000;
317+
return std::numeric_limits<unsigned>::max();
317318
} else if (m_zero_tokens) {
318319
return 0;
319320
} else {

0 commit comments

Comments
 (0)