Skip to content

Commit 063291b

Browse files
committed
Correct the parser used in the second half of the "Parse Into a Class"
example. Fixes #206.
1 parent 3eb827d commit 063291b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/parsing_into_a_class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main()
3333
std::cout << input << "\n";
3434

3535
//[ parsing_into_a_class_vec_of_strs
36-
constexpr auto uint_string = bp::uint_ >> bp::char_ >> bp::char_;
36+
constexpr auto uint_string = bp::uint_ >> +bp::char_;
3737
std::vector<std::string> vector_from_parse;
3838
if (parse(input, uint_string, bp::ws, vector_from_parse)) {
3939
std::cout << "That yields this vector of strings:\n";

0 commit comments

Comments
 (0)