Skip to content

Commit

Permalink
minor tutorial fix
Browse files Browse the repository at this point in the history
the stored variant value should be a "std::string" not an "int"

fixed #96
  • Loading branch information
acki-m committed Dec 5, 2017
1 parent 54eb77a commit 47d576c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/md_pages/tutorial/meta_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int main()
std::cout << value.get_value<bool>(); // prints "false"

value = prop.get_metadata("Description");
std::cout << value.get_value<int>(); // prints "This is a value."
std::cout << value.get_value<std::string>(); // prints "This is a value."
}
\endcode

Expand Down

0 comments on commit 47d576c

Please sign in to comment.